Jump to content

Need SQL Examples for Using Multiple Databases


dw85745

Recommended Posts

To get started heres one for transferring from a Foreign Db to the Current DB that took me a day to figure out. strSQL = "INSERT INTO " & strDestTBLName & "" _ & " SELECT * " _ & "FROM " & strScrTBLName & "" _ & " IN '" & strScrPathDB & "';" '<<Note use of single quotes required around strScrPathDB ' Debug.Print strSQL DaoDb.Execute strSQL, dbFailOnError '<<Execute belongs to DaoDB (Destination DB)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...