M
MBoozer
After being about 95% complete on my application, I realized that Option
Explicit shouldl be set on all forms. I went back and did that. Thankfully I
don't have any varibales that this affected except one. The error mssg says
the "RetValue is undeclared on the first line of the following code. Any idea
on the fix? Thanks in advance.
RetValue = MsgBox("Warning:" & vbCrLf & "Editing a Supplier Name will change
the name of all existing records for that name. Do you wish to continue?",
vbExclamation + vbYesNoCancel, "Edit Suppliers")
'If RetValue = 6 Then
'Me.AllowEdits = True 'Allow Edits To Data'
'Me.SupplierName.SetFocus 'Place cursor into FieldName'
'ElseIf RetValue = 2 Then 'Cancel Event for Cancel Button'
'DoCmd.CancelEvent
'ElseIf RetValue = 7 Then 'Cancel Event For No Button'
'DoCmd.CancelEvent
'End If
Explicit shouldl be set on all forms. I went back and did that. Thankfully I
don't have any varibales that this affected except one. The error mssg says
the "RetValue is undeclared on the first line of the following code. Any idea
on the fix? Thanks in advance.
RetValue = MsgBox("Warning:" & vbCrLf & "Editing a Supplier Name will change
the name of all existing records for that name. Do you wish to continue?",
vbExclamation + vbYesNoCancel, "Edit Suppliers")
'If RetValue = 6 Then
'Me.AllowEdits = True 'Allow Edits To Data'
'Me.SupplierName.SetFocus 'Place cursor into FieldName'
'ElseIf RetValue = 2 Then 'Cancel Event for Cancel Button'
'DoCmd.CancelEvent
'ElseIf RetValue = 7 Then 'Cancel Event For No Button'
'DoCmd.CancelEvent
'End If