B
bill2332
Hi all,
I have written an access database and have upsized it to
work with a SQL backend. The problem is that now my app
doesn't work. It specifically hangs on when i try and
open a recordset. My syntax is as follows:
dim db as database
dim rst as recordset
dim s as string
db = currentdb
s = "SELECT * FROM [mytable]"
set rst = db.Openrecordset(s)
This last line gives me the following error:
Run-time error '91'
Object variable or With block variable not set
Whats the problem? I think it has something to do with
Jet migrating to Transact-SQL
Please help....
I have written an access database and have upsized it to
work with a SQL backend. The problem is that now my app
doesn't work. It specifically hangs on when i try and
open a recordset. My syntax is as follows:
dim db as database
dim rst as recordset
dim s as string
db = currentdb
s = "SELECT * FROM [mytable]"
set rst = db.Openrecordset(s)
This last line gives me the following error:
Run-time error '91'
Object variable or With block variable not set
Whats the problem? I think it has something to do with
Jet migrating to Transact-SQL
Please help....