Hi
Iam working with Access 2010 I have code that loops through a continuous form and will give the user a message "You have Data Missing" if a Null value is found.
After the message I would like to set focus on that blank record. How do I do that. Here is my code
Dim blnSuccess As Boolean
blnSuccess = True
Me.Recordset.MoveFirst
Do While Not Me.Recordset.EOF
If Me.Type & "" = "" Or Me.RFrom & "" = "" Or Me.Quantity & "" = "" Then
blnSuccess = False
Exit Do
End If
Me.Recordset.MoveNext
Loop
If blnSuccess = True Then
DoCmd.Close acForm, "frmSearch"
DoCmd.OpenForm "frmGeneral"
"
Else
MsgBox "You are Missing Data"
Exit Sub
End If
Thanks you
L
Iam working with Access 2010 I have code that loops through a continuous form and will give the user a message "You have Data Missing" if a Null value is found.
After the message I would like to set focus on that blank record. How do I do that. Here is my code
Dim blnSuccess As Boolean
blnSuccess = True
Me.Recordset.MoveFirst
Do While Not Me.Recordset.EOF
If Me.Type & "" = "" Or Me.RFrom & "" = "" Or Me.Quantity & "" = "" Then
blnSuccess = False
Exit Do
End If
Me.Recordset.MoveNext
Loop
If blnSuccess = True Then
DoCmd.Close acForm, "frmSearch"
DoCmd.OpenForm "frmGeneral"
"
Else
MsgBox "You are Missing Data"
Exit Sub
End If
Thanks you
L