pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi, 'm recieving this error when i try to select all data from
Budget_INFO in different datatbase into Budget_INFO in this databse.
Please advice, 'm i useful some illegal statement here
Thanks
Sub InsertIntoX1()
Dim dbs As Database
Dim rst As DAO.Recordset
Set dbs = OpenDatabase("E:\Personal_Files\Access\Database4.accdb")
Set rst = CurrentDb.OpenRecordset("Budget_INFO", dbOpenDynaset)
dbs.Execute " INSERT INTO Budget_INFO1 " _
& "SELECT * " _
& "FROM [Budget_INFO];"
dbs.Close
End Sub
Budget_INFO in different datatbase into Budget_INFO in this databse.
Please advice, 'm i useful some illegal statement here
Thanks
Sub InsertIntoX1()
Dim dbs As Database
Dim rst As DAO.Recordset
Set dbs = OpenDatabase("E:\Personal_Files\Access\Database4.accdb")
Set rst = CurrentDb.OpenRecordset("Budget_INFO", dbOpenDynaset)
dbs.Execute " INSERT INTO Budget_INFO1 " _
& "SELECT * " _
& "FROM [Budget_INFO];"
dbs.Close
End Sub