Hi,
I'm trying to create two recordsets in one sub. I'm having no problem with the first recordset, but with the second recordset I keep getting an "Object Required" message on my set rst2 line. This is the code for the second recordset I'm trying to create. My first recordset is created the same way and I'm having no problems with that one.
Dim db2 As Database
Dim rst2 As Recordset
Set db2 = CurrentDb
Set rst2 = db.OpenRecordset("SELECT * FROM Part WHERE [ReplacementParts] = """ & PartEntered & """"
Thanks a lot for any help,
Maha
I'm trying to create two recordsets in one sub. I'm having no problem with the first recordset, but with the second recordset I keep getting an "Object Required" message on my set rst2 line. This is the code for the second recordset I'm trying to create. My first recordset is created the same way and I'm having no problems with that one.
Dim db2 As Database
Dim rst2 As Recordset
Set db2 = CurrentDb
Set rst2 = db.OpenRecordset("SELECT * FROM Part WHERE [ReplacementParts] = """ & PartEntered & """"
Thanks a lot for any help,
Maha