Results 1 to 3 of 3
  1. #1
    Ubberz is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    2

    Critera for date using wild cards

    Hello,


    I have tried numerous times and cannot figure out what the correct formula is for the following criteria.
    Add criteria to select only those records where the WorkOutDate is in January of 2012. Use a wildcard character in the day position of the date criterion. View the datasheet to confirm that only January 2012 records appear, then return to Query Design View.

    I have tried Like "1/#/2012" and It only gives me the single digits and i've tried Like "1/##/2012" and it gives me only the double digits. I also submitted it with Like "1/#/2012" or "1/##/2012" and I got this message.
    Should select only those records where the WorkOutDate is in January of 2012 using a wildcard character in the day position of the date criterion.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,953
    Never seen this but it's interesting.

    This worked for me:

    Like "1/*/2012"
    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.

  3. #3
    Ubberz is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    2
    Quote Originally Posted by June7 View Post
    Never seen this but it's interesting.

    This worked for me:

    Like "1/*/2012"
    Thanks it worked perfectly.

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

Similar Threads

  1. Query Critera w/ two Paths
    By Mike4172 in forum Queries
    Replies: 6
    Last Post: 04-10-2013, 08:47 PM
  2. Replies: 8
    Last Post: 03-05-2013, 01:20 PM
  3. Wild Cards in Linked Image Names
    By Siiig in forum Forms
    Replies: 2
    Last Post: 01-11-2013, 01:01 PM
  4. Wild Cards for Dates?
    By janelgirl in forum Access
    Replies: 4
    Last Post: 04-15-2011, 01:19 PM
  5. Combine switch function and Wild cards together
    By sandlucky in forum Queries
    Replies: 0
    Last Post: 03-28-2011, 11:51 PM

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