G
Greg
Running the following code in my database should return numerous records in
rstSub but rstSub.RecordCount is only ever = 1. The record returned is always
the last record in Tbl_SelectedEquipment that meets the criteria. Can anyone
explain why?
Dim sqlSub As String
sqlSub = "SELECT * FROM tbl_SelectedEquipment "
sqlSub = sqlSub & "WHERE lng_BookingID = " & lngOpenArgs
Set rstSub = db.OpenRecordset(sqlSub, dbOpenDynaset)
rstSub but rstSub.RecordCount is only ever = 1. The record returned is always
the last record in Tbl_SelectedEquipment that meets the criteria. Can anyone
explain why?
Dim sqlSub As String
sqlSub = "SELECT * FROM tbl_SelectedEquipment "
sqlSub = sqlSub & "WHERE lng_BookingID = " & lngOpenArgs
Set rstSub = db.OpenRecordset(sqlSub, dbOpenDynaset)