I am creating a recordset in VBA using a given Table. I like to move to a particular record of my recordset based uponn a particular condition. How could I do that?
Here is the code:
Dim MYDB As Database
Dim rst As Recordset
Set MYDB = DBEngine.Workspaces(0).Databases(0)
Set rst = MYDB.OpenRecordset("InboundGraphTable", DB_OPEN_DYNASET)
rst.Move
I like to move to the record of the recordet where Week = Current Week
Week is one of the fields of the recordset
Current Week is displayed in the text box and I can reference it
Your help would be highly appreciated.
Thanks
Jay
Here is the code:
Dim MYDB As Database
Dim rst As Recordset
Set MYDB = DBEngine.Workspaces(0).Databases(0)
Set rst = MYDB.OpenRecordset("InboundGraphTable", DB_OPEN_DYNASET)
rst.Move
I like to move to the record of the recordet where Week = Current Week
Week is one of the fields of the recordset
Current Week is displayed in the text box and I can reference it
Your help would be highly appreciated.
Thanks
Jay