Results 1 to 6 of 6
  1. #1
    FreddyFordo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    4

    Parameter Query forms


    Problem.

    I have a query with the following.

    JOB ID - INVOICE A DATE - INVOICE B DATE - INVOICE C DATE

    I want to pull off a report where any of the invoice dates fall between a certain criteria. So far I have this where a form drives the query.

    Between [Forms]![Form]![Text_Enter_Date_From] And [Forms]![Form]![Text_Enter_Date_To]

    This doesnts take into account all 3 fields and actually doesnt even work for one.

    Help!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Put the criteria under each column on separate OR lines.

    Why doesn't it work - error message, wrong results, nothing happens?

    Your form is actually named Form?
    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
    FreddyFordo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    4
    Yeah, my form is called form, its just to test it out.

    The query doesnt return anything and Ive checked the correct dates and the date formats in the entry field from my table and the form to make sure they are the same.

    Attached is a screendump.

    Click image for larger version. 

Name:	Fault.jpg 
Views:	11 
Size:	76.6 KB 
ID:	10975

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I suspect issue is with the criteria under the text fields.
    Are you using wildcard with LIKE? LIKE needs wildcard else might as well not be used.

    Post the sql statement.

    Is the date range required or do you want to be optional criteria?
    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.

  5. #5
    FreddyFordo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    4
    Here is ths sql statement.

    Between [Forms]![Form]![Text_Enter_Date_From] And [Forms]![Form]![Text_Enter_Date_To]

    Ive also got a Like function in the project field where I want to return records from a particular project.

    Like nz([Forms]![Form].[Text_Enter_Project],"*")

    Has it anything to do with the fact Ive linke an excel spreadsheet to a query. Ive checked and the date formats are the same.

    Thanks.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That is not complete SQL statement. See the SQL statement in SQL VIEW.

    Including Excel table link in query should be okay.

    The LIKE expression should be:
    Like [Forms]![Form].[Text_Enter_Project] & "*"
    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. Replies: 3
    Last Post: 08-16-2012, 03:02 PM
  2. Replies: 13
    Last Post: 01-10-2012, 09:56 AM
  3. Parameter Query....
    By Casper2012 in forum Queries
    Replies: 5
    Last Post: 08-16-2011, 11:06 AM
  4. Forms Subforms Enter Parameter Problem
    By GenericHbomb in forum Forms
    Replies: 3
    Last Post: 08-02-2011, 10:17 AM
  5. Parameter Query help...
    By daggy in forum Queries
    Replies: 1
    Last Post: 05-11-2010, 01:10 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