Access 2000 - ODBC connection

S

Steve

can anyone please help, the ODBC part of this code does not work can anyone
put me on the right track.

Dim rstProducts As DAO.Recordset
Dim SageODBC As DAO.Recordset

Dim DB As DAO.Database
Dim Sage As DAO.Database



Set DB = OpenDatabase("c:\RDI\rdiintranet\RdiIntranet.mdb")
Set rstProducts = DB.OpenRecordset("Select * From Products order by
Rdi_Product_Code")

Set Sage = OpenConnection("ODBC;DSN=SageLine50v13;UID=steve;PWD=visual")
Set SageODBC = Sage.OpenRecordset("Select * from Stock")
 

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.

Ask a Question

Top