Hi all,
having trouble trying to get this too work. Im creating a DB where a form contains a dropdown combo box, staff will select their name and once selected a listbox below will populate with their classes.
currently i am using this:
The code is placed in the after update of the combobox, where list2 is the listbox. "AT class select query" is a query which when ran prompts a user for there name and will populate accordingly. "SNAP schoosub" is the table that contains "subject name".
any help appreciated.
having trouble trying to get this too work. Im creating a DB where a form contains a dropdown combo box, staff will select their name and once selected a listbox below will populate with their classes.
currently i am using this:
Code:
Me!List2.RowSourceType = "Table/Query"
Me!List2.RowSource = "Select [AT Class select query].[Subject Name] From [SNAP schoosub] Where [AT stafflist].[Staff ID] = " & Me![Combo0]
The code is placed in the after update of the combobox, where list2 is the listbox. "AT class select query" is a query which when ran prompts a user for there name and will populate accordingly. "SNAP schoosub" is the table that contains "subject name".
any help appreciated.