A
AccessFreak via AccessMonster.com
Need some help on how I can make things work.
Table (Employee): NameID, Name, City, State
Form (Name): Does not initially pull any data.
Combo44: Default Value = "Name" (With Name, City, State options)
Text50: No default value
Listbox50: Initially runs query:
SELECT Employee.Name ID, Employee.Name, Employee.City, Employee.State FROM
[Key] WHERE (((Employee.Name) Like "*" & [Text50].[Text] & "*"));
Ok... here's the deal. I need to be able to use the dropdown box to select
between Name, City, and State and then be able to use Text50 to supply the
parameter for the listbox query. However, when I change the dropdown box to
something new, I need the listbox's query criteria to shift as well to search
in the specified field.
I've tried using the Visible (yes/no) properties with three different
listboxes and adding the repaint method, but nothing seems to pan out. The
easiest method would be to make three different forms with the three
listboxes as needed. Unfortunately, I need to keep everything on one form.
Thanks for your assistance in advance!!
Table (Employee): NameID, Name, City, State
Form (Name): Does not initially pull any data.
Combo44: Default Value = "Name" (With Name, City, State options)
Text50: No default value
Listbox50: Initially runs query:
SELECT Employee.Name ID, Employee.Name, Employee.City, Employee.State FROM
[Key] WHERE (((Employee.Name) Like "*" & [Text50].[Text] & "*"));
Ok... here's the deal. I need to be able to use the dropdown box to select
between Name, City, and State and then be able to use Text50 to supply the
parameter for the listbox query. However, when I change the dropdown box to
something new, I need the listbox's query criteria to shift as well to search
in the specified field.
I've tried using the Visible (yes/no) properties with three different
listboxes and adding the repaint method, but nothing seems to pan out. The
easiest method would be to make three different forms with the three
listboxes as needed. Unfortunately, I need to keep everything on one form.
Thanks for your assistance in advance!!