I have a subform with a loop to check to make sure 1 of the values in the textbox [CallType] = "N/A" before saving, but I can't seem to finish it, , well get it just to check for 1 N/A value, here is what I have :
[Code=VB]
Dim rst As DAO.Recordset
Set rst = Me.CallType
Do Until .EOF
rst ("CallType") <> "N/A"
.MoveNext
Set rst = Nothing
Loop
End With
If Me.[CallType] <> "N/A" Then Msgbox "you must have an N/A value"
End Sub[/Code]
this is onclose event of form(witch is Datasheetview)
FYI: I do have a DOA referrrence
[Code=VB]
Dim rst As DAO.Recordset
Set rst = Me.CallType
Do Until .EOF
rst ("CallType") <> "N/A"
.MoveNext
Set rst = Nothing
Loop
End With
If Me.[CallType] <> "N/A" Then Msgbox "you must have an N/A value"
End Sub[/Code]
this is onclose event of form(witch is Datasheetview)
FYI: I do have a DOA referrrence
Comment