Results 1 to 2 of 2
  1. #1
    jscriptor09 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    60

    ACCESS 2010 vba question

    Hi folks

    I am trying to figure out how to use wild characters in a rs search.

    Set rs = db.OpenRecordset(strSQL)
    Do While Not rs.EOF
    If (Trim(rs![aField]) = I am lost Here) Then

    What I am trying to do is to grab anything in "AField" that matches this:
    1?C*
    FC????G*


    F????G*


    Any idea how to structure this search?

    Many thanks for any help

    Mike

  2. #2
    jscriptor09 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    60
    If ((Trim(rs![aField] Like "1?C*") Or (Trim(rs![aFieldLike "FC????G*") Or (Trim(rs![aField]) Like "F????G*")) Then

    Seems to do the right thing!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Change Access 2003 mdb workgroup using Access 2010
    By metsmaniac in forum Security
    Replies: 6
    Last Post: 04-06-2012, 08:56 PM
  2. Saving Access 2010 database to Access 2007
    By Bajaz001 in forum Access
    Replies: 2
    Last Post: 04-11-2011, 12:59 PM
  3. Migrating from 2003 to 2010 question
    By MikeD in forum Access
    Replies: 1
    Last Post: 03-04-2011, 08:48 AM
  4. Opening Access 2000 file in Access 2010
    By Jacob in forum Access
    Replies: 10
    Last Post: 02-12-2011, 06:56 AM
  5. Convert access 2003 to access 2010
    By Vera in forum Access
    Replies: 3
    Last Post: 07-16-2010, 11:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums