Is there a function available that I can determine whether a field has a number in the string? For an example, "DJ007Hhg" returns Yes and "Heghelz" returns No.
Is there a function available that I can determine whether a field has a number in the string? For an example, "DJ007Hhg" returns Yes and "Heghelz" returns No.
Have to roll your own. Example http://www.utteraccess.com/forum/Fin...-t1746052.html
An expression in query or textbox can return True/False, no VBA required.
IIf([fieldname] LIKE "*[0-9]*", True, False)
Do you need to know what the number is? Will it always be only one digit?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Try
Code:Function HasNumber(sInput As String) As Boolean HasNumber = IIf(sInput Like "*[0-9]*", True, False) End Function
I just need to know if one exists. This works perfectly. Thanks.Have to roll your own. Example http://www.utteraccess.com/forum/Fin...-t1746052.html
An expression in query or textbox can return True/False, no VBA required.
IIf([fieldname] LIKE "*[0-9]*", True, False)
Do you need to know what the number is? Will it always be only one digit?