GreenWinter
New member
- Local time
- Today, 07:03
- Joined
- Jun 28, 2016
- Messages
- 4
I split database into front and back ends. When I try to open the record in back-end, I get run-time error 3011 saying database engine could find the table "tbl_GL_0050_Daily" with the line
highlighted. If I comment the
, there is no more errors. That function of the query is to select data into table "tbl_GL_0050_Daily" that means deleting the old one and remake a new table with the same name.
Could anyone help with the issue? Thanks in advance.
Code:
Set rs = dbs.OpenRecordset("tbl_GL_0050_Daily")
Code:
DoCmd.OpenQuery "qry_GL_0050_Daily_Report", acViewNormal, acEdit
Could anyone help with the issue? Thanks in advance.
Code:
Dim dbs As DAO.Database
Dim conStr As String
Dim password As String
Dim rs As DAO.Recordset
Dim temp As DAO.TableDef
Dim tdf As DAO.TableDef
password = ""
conStr = "MS Access;PWD=" & password
Set dbs = OpenDatabase("C:\db.accdb", False, False, conStr)
DoCmd.OpenQuery "qry_GL_0050_Daily_Report", acViewNormal, acEdit
Set rs = dbs.OpenRecordset("tbl_GL_0050_Daily")
rs.Close
Last edited: