I
idmnstr via AccessMonster.com
Hi,
I created the following attached to a button to copy the record my form is
currently displaying to another DB that is exact duplicate, structure only.
I get an error saying that "mdb\NewReport" table can't be found.
Private Sub CopyToImm_Click()
OldSQL = "INSERT INTO " & _
"U:\CIS\DAR\MyName\AccessDB\Jims_Immediate_DB.mdb\NewReport " & _
"SELECT * FROM NewReport " & _
"WHERE NewReport.ReportId = [ReportId];"
DoCmd.RunSQL OldSQL
End Sub
I created the following attached to a button to copy the record my form is
currently displaying to another DB that is exact duplicate, structure only.
I get an error saying that "mdb\NewReport" table can't be found.
Private Sub CopyToImm_Click()
OldSQL = "INSERT INTO " & _
"U:\CIS\DAR\MyName\AccessDB\Jims_Immediate_DB.mdb\NewReport " & _
"SELECT * FROM NewReport " & _
"WHERE NewReport.ReportId = [ReportId];"
DoCmd.RunSQL OldSQL
End Sub