Hello.
I have one db -> db1.mdb with only one table in it: tbl
Here's my code (under Report_open):
It connects to db1.mdb but it returns error message:
[red]
Microsoft Jet database ngine cannot find the input table or query 'tbl'. Make sure it exists...
[/red]
What could be the cause?
Any help is appereciated.
I have one db -> db1.mdb with only one table in it: tbl
Here's my code (under Report_open):
Code:
Dim CSQL as String
CSQL = "SELECT * from tbl;"
Dim [green]workjet2[/green] As DAO.Workspace, [blue]contbl[/blue] As DAO.Database
Set workjet2 = CreateWorkspace("NewJetWorkspace", "admin", "a", dbUseJet)
Set contbl = [green]workJET2[/green].OpenDatabase("C:\construction\db1.mdb", False, False, "MS Access")
Report.RecordSource = [blue]contbl[/blue].OpenRecordset(CSQL, dbOpenForwardOnly, dbReadOnly).Name
Me.GroupLevel(0).ControlSource = "accent_name"
Me.GroupLevel(0).SortOrder = False
It connects to db1.mdb but it returns error message:
[red]
Microsoft Jet database ngine cannot find the input table or query 'tbl'. Make sure it exists...
[/red]
What could be the cause?
Any help is appereciated.