G
Guest
Here is my code:
Dim dbs As Database
Dim rst As Recordset
Dim tbl
tbl = deLblDB1.Caption ' THis is set to "tbINCENC"
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset(tbl, dbOpenTable)
I receive an error 3011. when I change the tbl variable to:
tbl = "tbINCENC" it works. How do I get the value of the Label in tbl so
this can work?
Dim dbs As Database
Dim rst As Recordset
Dim tbl
tbl = deLblDB1.Caption ' THis is set to "tbINCENC"
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset(tbl, dbOpenTable)
I receive an error 3011. when I change the tbl variable to:
tbl = "tbINCENC" it works. How do I get the value of the Label in tbl so
this can work?