S
scubadiver
How would I go about setting up a command button so that if I click "yes"
the code proceeds and if I click "no" the code is cancelled. The code I have
at the moment is this in the "click" event:
Me.CreInv.Value = True
Me.Qry_Status = "Outstanding"
Me.Cont_DateInv = Date
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenForm "Queries Edit form", , , "QueryID = " & Me.QueryID & ""
DoCmd.Close acForm, "menu", acSaveNo
Cheers!
the code proceeds and if I click "no" the code is cancelled. The code I have
at the moment is this in the "click" event:
Me.CreInv.Value = True
Me.Qry_Status = "Outstanding"
Me.Cont_DateInv = Date
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenForm "Queries Edit form", , , "QueryID = " & Me.QueryID & ""
DoCmd.Close acForm, "menu", acSaveNo
Cheers!