expression to identify leading alpha character (1 Viewer)

Rats

Registered User.
Local time
Tomorrow, 04:55
Joined
Jan 11, 2005
Messages
151
Hi

I have a field that contains receipt numbers, most of which are numeric but a few commence with an alpha character such as "A12345". When the field starts with an alpha character I need to use conditional formatting to highlight the field.

Can anyone help me with an expression I can use in the conditional formatting to identify the situation above?

Appreciate your assistance..
 

missinglinq

AWF VIP
Local time
Today, 16:55
Joined
Jun 20, 2003
Messages
6,423
In Design View for your form, select your receipt number textbox, goto

Format - Conditional Format

and select

Expression Is:

then in the expression box enter

Not IsNumeric(Left([ReceiptNumber],1))

replacing ReceiptNumber with the actual name of your textbox.

Now select the formatting you want and then click on OK.
 

Rats

Registered User.
Local time
Tomorrow, 04:55
Joined
Jan 11, 2005
Messages
151
Thanks for everyones rapid response. I followed the link provided by Alansidman and came up with the Conditional Format expression of
Code:
[myfield] Like "[a-z]#*"
.
It seems to work a treat. But I wonder if it is as good as the code suggested by missinglinq.

Thanks again.
 

missinglinq

AWF VIP
Local time
Today, 16:55
Joined
Jun 20, 2003
Messages
6,423
Six of one, half a dozen of the other! :)

My signature line really says it all! :D
 

Rats

Registered User.
Local time
Tomorrow, 04:55
Joined
Jan 11, 2005
Messages
151
Ain't that the truth. Thanks for the response.
 

Users who are viewing this thread

Top Bottom