Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restricting Data in A list Box

Status
Not open for further replies.

Muzzy

Programmer
Dec 14, 2001
68
GB
I need to restrict the data in a list box depending on what is selected in another list box and having it update in real time without the need for a subform.
List box names are: lstAvailable and lstPartner.
 
On the lstAvailable combo/list on afther update insert the following:
me!lstPartner.recordsource="Select * From YrTbl Where PartnetID=" & me!lstAvailable
 
Unfortunately, didn't work, any ideas?
 
me!lstPartner.rowsource="Select * From YrTbl Where PartnetID=" & me!lstAvailable

Not Recordsource, but rowsource SRY [sadeyes]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top