Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box 2 based on list box 1
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00253199
Message ID:
00253574
Views:
24
Jim, to follow up on your idea yesterday (I have a similar problem I'm trying to solve populating a listbox2 from a combobox1),

I'm using the following code:

combobox1 valid:

cSearchValue = left(this.value,4)
thisform.listbox2.requery(cSearchValue) (passing the combobox value to the requery method)

---------------------------------------------

listbox2 requery:
Lparameters lcParmForView
Requery("GetNumberDnis")

rowsource = GetNumber (name of view)
rowsourcetype = 2 - alias


It's not working. First a dialog box pops up asking me for the value of the view parameter. Then the listbox2 Requery call gives an operator type mismatch error.

Can you see what I'm doing wrong?


My Show Me The Code Web Site


Previous
Next
Reply
Map
View

Click here to load this message in the networking platform