G
Guest
Hi everybody
I have following recordset on a form,after update of SupID field. What I
want is to bring all the records for the supplier, more than one record, but
on my form it is comming only one record, any idea? My idea is to bring
records than i will edit the records and save the same. my recordset is as
follows:
Set rst = db.OpenRecordset("SELECT * FROM tPrices WHERE SupID =" & SupID &
";")
rst.MoveLast
rst.MoveFirst
Do Until rst.EOF
Me.WasteCode = rst!WasteCode
Me.WastePrice = rst!WastePrice
rst.MoveNext
Loop
rst.Close
Set db = Nothing
Thank & Regards
Wahab
I have following recordset on a form,after update of SupID field. What I
want is to bring all the records for the supplier, more than one record, but
on my form it is comming only one record, any idea? My idea is to bring
records than i will edit the records and save the same. my recordset is as
follows:
Set rst = db.OpenRecordset("SELECT * FROM tPrices WHERE SupID =" & SupID &
";")
rst.MoveLast
rst.MoveFirst
Do Until rst.EOF
Me.WasteCode = rst!WasteCode
Me.WastePrice = rst!WastePrice
rst.MoveNext
Loop
rst.Close
Set db = Nothing
Thank & Regards
Wahab