hceonetman
Technical User
I have a form for purchase orders and a subform with payments against the PO in the parent record. If a payment type on the subform is identified as a closing entry, a piece of code runs which verifies that the amount entered properly zeros the balance. To do this, I open a recordset of the child records and total the entries by stepping through them one by one. If the value <> 0 I want to put the cursor back on the closing entry amount field, but I can't get the bookmark syntax right.
The main form is "frm_Purchase_Orders_Header" and the subform is "Subfrm_PO_Detail". In the code module I use Rs_PO_Header and Rs_PO_Detail as the recordsets.
The line "Set RS_Bkmrk = rs_PO_Detail.RecordSet.Clone"
gets me "Method or data member not found" error.
As a possible alternative, can I use the DSum function to get the line item totals instead of stepping through the records? I'm not sure which would be the preferred method.
Thanks for your help,
HCEONETMAN
You don't stop playing because you get old,
you get old because you stop playing.
The main form is "frm_Purchase_Orders_Header" and the subform is "Subfrm_PO_Detail". In the code module I use Rs_PO_Header and Rs_PO_Detail as the recordsets.
The line "Set RS_Bkmrk = rs_PO_Detail.RecordSet.Clone"
gets me "Method or data member not found" error.
As a possible alternative, can I use the DSum function to get the line item totals instead of stepping through the records? I'm not sure which would be the preferred method.
Thanks for your help,
HCEONETMAN
You don't stop playing because you get old,
you get old because you stop playing.