Results 1 to 2 of 2
  1. #1
    jlgray0127 is offline Competent Performer
    Windows 7 64bit Access 2003
    Join Date
    Oct 2011
    Location
    Central Illinois
    Posts
    185

    Exclamation Using a form to enter criteria for a query... (ITS MY BIRTHDAY!!! PLEASE HELP!)


    I have found several posts on this, but can not really make sense of what I am writing.
    I am using a form with 8 unbound text boxes to enter criteria for a Query. I have the following SQL statement written, which works for the two fields, but I am not sure how to add the other fields.... Also, I would like for it to be "like" for each field... so not matter what is entered, it will bring up anything that falls under this criteria... Also note, I don't want to "have to" enter data in all the fields... I would like to be able to enter data in one field, a few fields, or all fields... This would be the most wonderful birthday present ever, if someone could please help!!!!

    WHERE (((PFEP_RACK_AUDIT_INQ.TOP_LVL_IDENT1)=Forms!Switc hboard_PFEP!INQ_ARRANGEMENT) And ((PFEP_RACK_AUDIT_INQ.PSA)=Forms!Switchboard_PFEP! INQ_PSA) And ((PFEP_RACK_AUDIT_INQ.TOP_LVL_IDENT1)=Forms!Switch board_PFEP!INQ_ARRANGEMENT)) Or (((PFEP_RACK_AUDIT_INQ.TOP_LVL_IDENT1)=Forms!Switc hboard_PFEP!INQ_ARRANGEMENT) And ((PFEP_RACK_AUDIT_INQ.PSA)=Forms!Switchboard_PFEP! INQ_PSA) And ((IsNull(Forms!Switchboard_PFEP!INQ_ARRANGEMENT))< >False)) Or (((PFEP_RACK_AUDIT_INQ.TOP_LVL_IDENT1)=Forms!Switc hboard_PFEP!INQ_ARRANGEMENT) And ((IsNull(Forms!Switchboard_PFEP!INQ_PSA))<>False)) Or (((IsNull(Forms!Switchboard_PFEP!INQ_ARRANGEMENT)) <>False) And ((IsNull(Forms!Switchboard_PFEP!INQ_PSA))<>False)) ;

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    Review tutorials here http://datapigtechnologies.com/AccessMain.htm especially 'Build a Custom Filter in Your Form' in the Access Forms: Tips and Techniques section.
    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.

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

Similar Threads

  1. Calculate age based on birthday
    By MediaCo in forum Access
    Replies: 10
    Last Post: 10-14-2014, 01:00 PM
  2. Just want a plain Birthday Report
    By Palomino33 in forum Queries
    Replies: 7
    Last Post: 11-03-2011, 05:29 PM
  3. Birthday Expression
    By cassidym in forum Queries
    Replies: 7
    Last Post: 03-17-2011, 05:52 AM
  4. Birthday format
    By endri81 in forum Forms
    Replies: 1
    Last Post: 02-12-2011, 04:07 PM
  5. Calendar Birthday Question
    By kirklandwater123 in forum Access
    Replies: 4
    Last Post: 10-29-2010, 11:20 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