Applying a different query to a list box

david.paton

Registered User.
Local time
Today, 15:01
Joined
Jun 26, 2013
Messages
338
I have a form that applies a query to data using a list box. How would I add a button that applies a different query to the list box when it is clicked?
 
You could create two listboxes and use the button to toggle which one is visible.
 
Hi,

Write this code to the button click event:
ListBox.RowSource="YourQuery"
 

Users who are viewing this thread

Back
Top Bottom