S
srpathak
Hi Friends,
I am using Access 2002 with a SQL backend for a project. I am trying to
access a table in the database using Recordset, and I am popped with
the error.
*Object variable or WIth block variable not set *
Following is the code-
Dim DbTmp As Database
Dim rsCity As Recordset
Set DbTmp = CurrentDb()
Set rsCity = CurrentDb.OpenRecordset("Select * FROM [ZIPS]") ' This is
the source of error
rsCity.Find "CITY = '" & Me.CITY.Value & "'"
I have included the DAO library in my project. I tried using
DAO.Database and DAO.Recordset but no luck! I am just not able to
figure this thing out. Any help in this matter would be really great
for me!
Thank you.
Sincerely,
Sameer
I am using Access 2002 with a SQL backend for a project. I am trying to
access a table in the database using Recordset, and I am popped with
the error.
*Object variable or WIth block variable not set *
Following is the code-
Dim DbTmp As Database
Dim rsCity As Recordset
Set DbTmp = CurrentDb()
Set rsCity = CurrentDb.OpenRecordset("Select * FROM [ZIPS]") ' This is
the source of error
rsCity.Find "CITY = '" & Me.CITY.Value & "'"
I have included the DAO library in my project. I tried using
DAO.Database and DAO.Recordset but no luck! I am just not able to
figure this thing out. Any help in this matter would be really great
for me!
Thank you.
Sincerely,
Sameer