Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

how to check a table in access if it contains less then 10 Characters

$
0
0
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?
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


Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>