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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Multiple Sources

Status
Not open for further replies.

TSSTechie

Technical User
May 21, 2003
353
GB
Howdy folks,

Is it possible for a combo box to look up it's data from 2 seperate tables.

I would like a combo to show ID Name from the table Staff and ID Name from the table Appraisers and then sort the resulting combined list into ascending alphabetical order.

I'd be really grateful if someone could advise me on how to do this.

Thanks in advance

TSSTechie

[lightsaber] May The Force Be With You [trooper] [yoda]
 
myCombo.RowSource = "SELECT ID,[Name] FROM Staff UNION SELECT ID,[Name] FROM Appraisers ORDER BY 2"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Howdy,

Thanks a lot for that. All sorted now.

Thanks again

TSSTechie

[lightsaber] May The Force Be With You [trooper] [yoda]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top