There are a couple of ways.
You could use MSQuery
From the menu bar
Import External Data, New Database Query
You can also use VBA to attach to an Access table. Here is an example:
Dim wrkJet As Workspace
Dim dbf As DAO.Database
Dim rst As DAO.Recordset
'Set up recordset for combo
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set dbf = wrkJet.OpenDatabase _
("\\rsltx1-bm01\busmgmt\Dev CISCMS\ciscmsdata.mdb")
Set rst = dbf.OpenRecordset("Select * from tbllkEmployee " _
& "ORDER BY tbllkEmployee.EmployeeName;")
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.