GoodLife22
Registered User.
- Local time
- Today, 08:34
- Joined
- Mar 4, 2010
- Messages
- 86
I did a quick search & didn't see anything, sorry if this is a repost. I hope this is an easy one.
I have a varchar field called [CUST_CODE] Each customer has a unique code. Some include numbers, some do not. So the data looks like:
SMS.DELTA.1952
CRY.DOWN.NA
SMS.ALPHA.NA
CRT.ALPHA.5555
CRT.HOUS.NA
ALL.AUST.NA
TCR.ALTA.7412
Each section means something different to my staff. On my main dataentry form in Access I want to add a simple if statement that says:
When a record loads IF the [CUST_CODE] has any numbers in it pop up a message box
So it would look something like:
Private Sub Form_Current()
If
Me.CUST_CODE (includes numbers) then
MsgBox "This is a location only client. Only send product via FedEx"
Else
'Do nothing
End If
End Sub
Hopefully this makes sense. Thank you to anyone who can assist.
I have a varchar field called [CUST_CODE] Each customer has a unique code. Some include numbers, some do not. So the data looks like:
SMS.DELTA.1952
CRY.DOWN.NA
SMS.ALPHA.NA
CRT.ALPHA.5555
CRT.HOUS.NA
ALL.AUST.NA
TCR.ALTA.7412
Each section means something different to my staff. On my main dataentry form in Access I want to add a simple if statement that says:
When a record loads IF the [CUST_CODE] has any numbers in it pop up a message box
So it would look something like:
Private Sub Form_Current()
If
Me.CUST_CODE (includes numbers) then
MsgBox "This is a location only client. Only send product via FedEx"
Else
'Do nothing
End If
End Sub
Hopefully this makes sense. Thank you to anyone who can assist.