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

Filling a combobox with data from a remote DB

Status
Not open for further replies.

zawinulfans

Programmer
Apr 10, 2003
5
IT
Hello everybody,
I need to fill programatically a combobox with data from a remote DB.

Dim dbs as DAO.Database
Dim rst as DAO.Recordset
Dim wrk as DAO.Workspace

Set dbs = wrk.OpenDatabase("\\fileserver\\datadb.mdb", True)

I need to populate a combobox from this remote database.

How can I do?

Many thanks in advance, all the best.

Marco (from Italy).
 
What do you wish to do with the cbo when you have successfully populated it?

One way would be to set the row source type to "Value List" and build a string from the foreigh table and plug it into the row source of the cbo.

Need a sample? Send your email and explain in it what you wish to do.

rollie@bwsys.net

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top