how do i call a function to check if a table contains less the 10 Characters
and display a msgbox but to let the user to enter the form that holds the customers records
i tried this code
what is missing?
and display a msgbox but to let the user to enter the form that holds the customers records
i tried this code
what is missing?
Code:
Public Function PhoneWrong()
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "SELECT Cellular FROM Customers", CN, adOpenStatic, adLockOptimistic
If rs!Cellular < 10 Then
MsgBox "less the 10", vbExclamation
End If
End Function