Results 1 to 2 of 2
  1. #1
    shanmugamgsn is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2011
    Posts
    17

    MS Access Date filter basedon User Input

    Hi Friends,

    I have query in MS access which does date filter based on value given by user.


    SELECT *
    FROM Table1
    WHERE ((DateValue([Table1].[Date_col])


    Between "#"&[Forms]![Frm1]![Date1]&"#"
    and "#"&[Forms]![Frm1]![Date2]&"#"))


    But this gives empty output

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    It's your between statement Change it to
    Between DateValue(forms!frm1!date1) and DateValue(Forms!frm1!date2)


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

Similar Threads

  1. How to take a user input
    By iamraja5 in forum Access
    Replies: 1
    Last Post: 05-12-2011, 10:17 AM
  2. Replies: 9
    Last Post: 10-01-2010, 05:50 PM
  3. Reporting with user input
    By tazbergy in forum Reports
    Replies: 1
    Last Post: 09-12-2010, 11:26 PM
  4. User Input Query
    By ManC in forum Queries
    Replies: 2
    Last Post: 03-04-2010, 07:09 PM
  5. Set required user input
    By ZeusOsiris in forum Database Design
    Replies: 2
    Last Post: 12-04-2006, 07:13 PM

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