TryingMyBest
Registered User.
- Local time
- Today, 00:48
- Joined
- Nov 18, 2004
- Messages
- 54
Hello
Does anyone know of a tidier way to write this or is this ok?
Many thanks
Jo

Does anyone know of a tidier way to write this or is this ok?
Code:
ElseIf IsNull(Me.txtResponsiblePerson) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.txtEmailAddress) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.txtAuditee) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.txtAuditeeEmailAddress) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.txtWBSCode) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.cboReasonForAudit) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.cboAuditorName) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.txtPlannedAuditDate) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.cboLocation) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.txtWBSCode) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
ElseIf IsNull(Me.txtPlannedAuditDuration) Then
MsgBox "You must complete all relevant fields to continue", vbOKOnly, "Error"
Else
Jo