hey guys ! so i have
and when i click OK, it pups up "required"
i dont need this information with "1"
but when i remove
it doesnt want to run map even if every data are entered.
could u please advise me how to run vbinformation only if there is no info in above stated conditions.. thank you.
Code:
Private Sub CmdMap2_Click()
Dim strMessage
strMessage = FormattedMsgBox(DLookup("nonEnglishText", "Tmsgbox", "msgID=7") & vbCrLf & vbCrLf & DLookup("nonEnglishText", "Tmsgbox", "msgID=8") & vbCrLf & DLookup("nonEnglishText", "Tmsgbox", "msgID=9") & vbCrLf & DLookup("nonEnglishText", "Tmsgbox", "msgID=10") & vbCrLf & vbCrLf & DLookup("nonEnglishText", "Tmsgbox", "msgID=11"), vbInformation, "Critical Data are Missed. ErrorID = 7-11")
If IsNull(Me.RiskCode) Or Me.RiskCode = 26 Or (Me.locationID & "") = "" Then
MsgBox strMessage, vbInformation, "Required Fields"
Else
Me.Dirty = False
OpenMap
End If
End Sub
and when i click OK, it pups up "required"
i dont need this information with "1"
but when i remove
Code:
MsgBox strMessage, vbInformation, "Required Fields"
could u please advise me how to run vbinformation only if there is no info in above stated conditions.. thank you.