Results 1 to 2 of 2
  1. #1
    suverman is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    15

    Re-using a query by inputing date.

    Hello.


    The sql I have written is

    select sum(amount) from TABLEA where cheque_dt = &che_dt;
    And I input 31/05/2011

    Just doesnt work.


    All I get is a blank cell.

    But if I give this

    select sum(amount) from TableA;
    It gives me the sum of the field amount.



    How do I query so that I can input 2 fields in the AND clause, which I would input.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    not sure I understand your post; are you building the query using the design grid?....if not - do so.

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

Similar Threads

  1. Date Query
    By vimrcds in forum Queries
    Replies: 2
    Last Post: 01-29-2011, 04:28 PM
  2. Date query help!!!
    By dduvvuru in forum Queries
    Replies: 2
    Last Post: 08-27-2010, 12:59 PM
  3. Date query
    By Philangr8 in forum Queries
    Replies: 7
    Last Post: 10-06-2009, 04:37 PM
  4. Date Query
    By drako28 in forum Queries
    Replies: 2
    Last Post: 09-10-2009, 11:11 AM
  5. Replies: 2
    Last Post: 07-31-2009, 06:56 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