B
Bob
If I don't want the massage box to appear just save on closing what do I
take away;
If MsgBox("Do You Want To Save?", vbQuestion + vbApplicationModal + vbYesNo
+ vbDefaultButton1, "Intellisoft") = vbYes Then
' If Me.OpenArgs = "ModifyOldInvoice" Then
If bModify = True Then
CurrentProject.Connection.Execute "DELETE * FROM
tblDailyCharge WHERE InvoiceID=" & tbInvoiceID.value
CurrentProject.Connection.Execute "DELETE * FROM
tblAdditionCharge WHERE InvoiceID=" & tbInvoiceID.value
bModify = False
End If
subSetValues
subSetInvoiceDetailsValues
recInvoice.Update
End If
'End If
Set recInvoice = Nothing
DoCmd.Close acForm, Me.Name
Thanks in advance.........Bob Vance
take away;
If MsgBox("Do You Want To Save?", vbQuestion + vbApplicationModal + vbYesNo
+ vbDefaultButton1, "Intellisoft") = vbYes Then
' If Me.OpenArgs = "ModifyOldInvoice" Then
If bModify = True Then
CurrentProject.Connection.Execute "DELETE * FROM
tblDailyCharge WHERE InvoiceID=" & tbInvoiceID.value
CurrentProject.Connection.Execute "DELETE * FROM
tblAdditionCharge WHERE InvoiceID=" & tbInvoiceID.value
bModify = False
End If
subSetValues
subSetInvoiceDetailsValues
recInvoice.Update
End If
'End If
Set recInvoice = Nothing
DoCmd.Close acForm, Me.Name
Thanks in advance.........Bob Vance