Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requery a listbox that does not have a controlsource?
Message
From
17/08/2000 14:59:48
 
 
To
17/08/2000 14:33:44
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00406291
Message ID:
00406309
Views:
26
>I have a list box that is an SQL statement and not tied to a particular controlsource. The REQUERY method apparently works only with a controlsource set. How do I have the listbox rerun the SQL when I change the param used in the SQL where clause?

I did this, I create a form, added a listbox and a command button. I made the RowSourceType SQL, and the RowSource this:

select to_name from orders where emp_id = pubvar into cursor a

Then, made the Click() of the button do Thisform.List1.Requery(). I defined pubvar as a number in the command window and ran the form.

As I changed teh value of pubvar and clicked my button, my list kept changing, and I didn't set a control source.

Anything else you can tell us that you did with teh form or list box? Whats the SQL?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform