I have two files ('field' and 'master') that I want to append the data from 'field' into 'master'. Everything is the same between the files (tables, table structure, etc) except as you can surmise, the field file is on a laptop and the master is the office master. I know that replication could do this, but my boss does not want to use replication.
I have created a form with two text boxes, Common Dialog Control and three cmd buttons (to select the field file, the master file, and an Update Now button)
Due to the primary and foreign key restraints, I have to append the tables in a specific order (A, B, C, etc)
dim strSQL as string
docmd.setwarnings false
strSQL = " INSERT INTO me!txtmaster.A SELECT * from me!txtfield.A"
docmd.runSQL strSQL
..
..
..
docmd.setwarnings true
I keep getting a syntax error msgbox re the INSERT INTO statement.
Thanks for your help.
BusMgr
I have created a form with two text boxes, Common Dialog Control and three cmd buttons (to select the field file, the master file, and an Update Now button)
Due to the primary and foreign key restraints, I have to append the tables in a specific order (A, B, C, etc)
dim strSQL as string
docmd.setwarnings false
strSQL = " INSERT INTO me!txtmaster.A SELECT * from me!txtfield.A"
docmd.runSQL strSQL
..
..
..
docmd.setwarnings true
I keep getting a syntax error msgbox re the INSERT INTO statement.
Thanks for your help.
BusMgr