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

POINTING DAO.DATABASE TO ANOTHER DATABASE

Status
Not open for further replies.

rstitzel

MIS
Apr 24, 2002
286
US
I have the following snippet of code in one of my databases. When an option is taken from the menu I want to run a module that updates ANOTHER database's tables.

Option Compare Database
Option Explicit

Dim dbs As DAO.Database
Dim ShortHist As DAO.Recordset
Dim WrkFile As DAO.Recordset
Dim loadhist As DAO.Recordset
Dim PgmStatus As DAO.Recordset
Dim tdf As DAO.TableDef
Dim OKtoRun As String

Public Function CreateWorkFile()

Set dbs = CurrentDb()
Set PgmStatus = dbs.OpenRecordset("tbl_Status")

HOW DO I Set dbs to another database or does this have to be done with ado? Please Advise....Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top