Code:
On Error Resume Next
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "COMPLETE" Then
If Len(ctl & vbNullString) = 0 Then
MsgBox "Please complete all fields before saving this record.", _
vbInformation, "Missing Data"
Exit Sub
End If
End If
Next ctl
On Error GoTo 0
confirm_pick = MsgBox("Are you sure you wish to confirm this order?", vbYesNo, "Confirm?")
If confirm_pick = vbNo Then
Exit Sub
End If
Hi All,
I need to ensure that all fields on a "bound continuous form" are completed before saving.
The issue I have is that if you are entering a line of data, the continuous form creates a new blank record underneath, so the code will always record that there are null fields.
Is there a way around this?
Thanks,
Paul.
__________________