C
Chrissy
Will someone point the way please? I am not a pro, I am
learning on my own.
I have an invoice form, a receipts form and a labor form.
Each is tied to its own table. The receipts form (popup)
opens from a button on the invoice form (which remains
open), and if any labor is associated with the receipt
(employee paid on receipt) then the labor form opens from
a button on the receipts form. At the point the labor
form is open, all three forms are open, focus on labor
form.
invoice --> receipts --> labor (if necessary)
I ask the user to validate the receipt before moving to
labor, but I don't do anything but open the labor form at
that point. Then when closing labor form I ask the user
to validate the labor before accepting the record. That's
my intent, anyway.
My problem is that I wish to ensure no record for EITHER
the receipt or labor should the user decline the labor
entry. I have tried:
me.undo
and
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
DoCmd.Close acForm, Me.Name, acSaveNo
at various places with labor and receipts forms still
open.
When there is no labor and the user is asked to validate
receipts, their declining the receipt invokes the DoCmd
method shown above to delete the record. Works just fine!
When I do the same at the labor, no go. Remember, at that
point I wish the labor record AND the receipt record to
be deleted. I am not able to get the DoCmd method to
delete; it falls right through the code with no affect
(seemingly).
This is frustrating for such a novice. Works one case,
not the other -- third form issue? Cannot see how.
Please help if you can, thanks.
Chrissy
learning on my own.
I have an invoice form, a receipts form and a labor form.
Each is tied to its own table. The receipts form (popup)
opens from a button on the invoice form (which remains
open), and if any labor is associated with the receipt
(employee paid on receipt) then the labor form opens from
a button on the receipts form. At the point the labor
form is open, all three forms are open, focus on labor
form.
invoice --> receipts --> labor (if necessary)
I ask the user to validate the receipt before moving to
labor, but I don't do anything but open the labor form at
that point. Then when closing labor form I ask the user
to validate the labor before accepting the record. That's
my intent, anyway.
My problem is that I wish to ensure no record for EITHER
the receipt or labor should the user decline the labor
entry. I have tried:
me.undo
and
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
DoCmd.Close acForm, Me.Name, acSaveNo
at various places with labor and receipts forms still
open.
When there is no labor and the user is asked to validate
receipts, their declining the receipt invokes the DoCmd
method shown above to delete the record. Works just fine!
When I do the same at the labor, no go. Remember, at that
point I wish the labor record AND the receipt record to
be deleted. I am not able to get the DoCmd method to
delete; it falls right through the code with no affect
(seemingly).
This is frustrating for such a novice. Works one case,
not the other -- third form issue? Cannot see how.
Please help if you can, thanks.
Chrissy