I have some VBA code in which I am asking the user to tell it which table has the data that is to be converted according to a process that comes afterward.
As it is, I use an input box and the user types in the table name and everything proceeds fine and dandily. However, what would be slicker is if the user could click on a table name that exists in the database instead of having to type its name. Can this be accomplished? If so, how is it done?
This is what I use
Use a combo box or a list box and set the row source to:
Code:
SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Type)=1) AND ((Left([Name],4)<>"Msys")=True) AND ((MSysObjects.Flags)=0));
Returns only local tables- no linked tables.
Also see http://access.mvps.org/Access/queries/qry0002.htm
Still thinking about the 2nd question...