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

drop down menu to list tables in DB

Status
Not open for further replies.

yoshe

Technical User
Jan 12, 2007
36
US
Hi all,
Is there any way to make a drop down list refer to the tables in the access db? The purpose is to automate an update query: the user needs to regularly update the db with info from a table that is imported into access weekly. I would like to allow the user to select the table he has uploaded and then click go to update. Sorry if this is basic, I'm new. Many thanks for any help.
 
Sure, just create a combobox on your form. Make sure the Row Source Type is Table/Query, and enter the following in the Row Source field:
Code:
SELECT MSysObjects.Id, MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Name) Not Like "MSys*") AND ((MSysObjects.Type)=1))
ORDER BY MSysObjects.Name;
HTH,

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top