Results 1 to 2 of 2
  1. #1
    basacwards is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Dec 2014
    Posts
    1

    DCount between dates - Please Help :)

    Hello all,

    I could really use some help with my form. I have a form with a text box "txtSdate" and a text box "txtEdat" and a text box "txttotal".
    I have a table that is called "Call Logs" and a field in it called "Date" which is shown as mm/dd/yyyy for each record.



    What i want to do is have "txttotal" display the # of records for the specific date range when the user enters it into "txtSdate" and "txtEdate"


    - Any help would be great!
    Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    select * from tCallLogs where [date] between forms!frmFind!txtSDate and forms!frmFind!txtEDate

    for total either look at the bottom record count
    or make the query do the count instead of individiual records.

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

Similar Threads

  1. Replies: 8
    Last Post: 12-02-2013, 03:46 PM
  2. List Dates between Start and Finish Dates
    By Buddus in forum Queries
    Replies: 1
    Last Post: 07-26-2013, 01:58 PM
  3. Query input dates for range of dates in two fields
    By kagoodwin13 in forum Queries
    Replies: 3
    Last Post: 02-13-2012, 04:25 PM
  4. Replies: 10
    Last Post: 11-16-2011, 10:58 AM
  5. DCount only counting some dates
    By Jules48 in forum Programming
    Replies: 7
    Last Post: 09-22-2011, 02:29 AM

Tags for this Thread

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