finding specified characters in text field access 2007

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pat Bolen
    New Member
    • Mar 2011
    • 2

    finding specified characters in text field access 2007

    I am attempting to write code or query to find any numeric value in a text field. The records will have both numeric and alpha characters but I want to comb through the records and make a list of the records with numeric values in them.

    kdkendn
    dkcic120
    234kdslc500

    as examples. so the second and third records would be pulled back. I want to do this either as query or as vb code
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #2
    In a query you can use wildcards for example:
    Code:
    SELECT * FROM myTable WHERE txFieldName like "*#*"
    # is the wildcard for numeric charecter.

    This will return all records where txFieldName contains a number.

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32661

      #3
      Not everyone could have answered that question Pat ;-) Remember to mark the post as Best Answer when you've reviewed it.

      Comment

      Working...