>Hi Jess!
>
>Thanks for your answer, my first problem was resolved.
>
>Thanks a Kevin Mcneish too.
>
>Approach the message, to tell you:
>
>I have two combos, the list in the second combo depend of the first combo's value. So, how or where especify the parameter of the view displayed in sencon combo?, is the parameter like public variable?, and the requery command must be to the combo or to buzobj?
>
>uff, I expect don't trouble you.
>
>New Thanks!
>
>Enrique Ramírez L.
You declare and use public variable or custom property.
At InteractiveChangeEvent of the First Combo put:
cPublicVar = This.Value or anything or Thisform.cVariable
Thisform.SecondCombo.Requery()
The Rowsource property of 2nd combo should be:
IF public variable:
SELECT any_thing FROM mytable WHERE mytable.field1 = cPublicVar INTO CURSOR tempcursor
IF custom property:
SELECT any_thing FROM mytable WHERE mytable.field1 = Thisform.cVariable INTO CURSOR tempcursor
HTH
>
>>Requery applies to Listbox and Combox when Rowsourcetype is SQL. It also applies to SQL Views.
>>
>>Refresh can be used to re-display the new value of controls (if any).
>>
>>Could please specify what specific control you are using. Is it Grid, List etc?
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."