Data Checking (1 Viewer)

mkkashif

Registered User.
Local time
Today, 12:51
Joined
Sep 1, 2004
Messages
88
hi,

if i want to check a field that it contains the text
how can i do that
example a field t1

if me.t1 ="what i have to put here"

msgbox "Please enter number in this field"
exit sub
end if
 

trucktime

Registered User.
Local time
Today, 13:51
Joined
Oct 24, 2004
Messages
556
Text

I'm sorry, but the question is not very clear.
At least, I don't understand what you are trying to do.
Please explain.
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 12:51
Joined
Aug 30, 2003
Messages
36,139
How about

If Not IsNumeric(Me.t1) Then
...
 

mkkashif

Registered User.
Local time
Today, 12:51
Joined
Sep 1, 2004
Messages
88
thanks

Dear thanks it's working
if i want to check the text what is the method to do .
i mean if i want that a field only contain text and no numeric how can i check.
 

Users who are viewing this thread

Top Bottom