Results 1 to 3 of 3
  1. #1
    dilara is offline Novice
    Windows Vista Access 2000
    Join Date
    May 2012
    Posts
    7

    Need help on criteria form.

    Hi,



    I have a form that is meant to input criteria for a certain query. The form consist of 2 combo boxes and 2 text box for the Between/And dates. The combo boxes are working fine, however i can't see whats wrong my date criteria as access is not returning any result.

    Form Name is frmKLAdHoc
    tbx1 is KLStartDate
    tbx2 is KLEndDate

    then here's the SQL for my query

    SELECT tblKLMain.[Date Submitted], tblKLMain.[Client Name], tblKLMain.[Matter Name], tblKLMain.[Client Number], tblKLMain.[Matter Number], tblKLMain.[Form Type], tblKLMain.[Submitted by]
    FROM tblKLMain
    WHERE (((tblKLMain.[Date Submitted]) Between [Forms]![frmKLAdHoc]![KLStartDate] And [Forms]![frmKLAdHoc]![KLEndDate]) AND ((tblKLMain.[Form Type])=[Forms]![frmKLAdHoc]![cboKLFormType]) AND ((tblKLMain.[Submitted by])=[Forms]![frmKLAdHoc]![cboKLUsername]));

    thank you for your help.

  2. #2
    R_Badger is offline Knows a few tricks
    Windows XP Access 2003
    Join Date
    Feb 2012
    Location
    Suffolk, UK
    Posts
    262
    This is going to sound stupid, but where do you live/ what date format are you using? Also are the fields in the table stored as date/time or as text?

  3. #3
    dilara is offline Novice
    Windows Vista Access 2000
    Join Date
    May 2012
    Posts
    7
    I am from the Philippines. The date format in the tblKLMain is Medium Date while the format of the text box is left blank. Thanks

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

Similar Threads

  1. Search form criteria
    By atom in forum Forms
    Replies: 3
    Last Post: 04-03-2012, 06:42 AM
  2. Criteria from Form
    By SgtSaunders69 in forum Queries
    Replies: 3
    Last Post: 01-04-2012, 05:30 AM
  3. Open 2nd Form with 2 criteria?
    By Robeen in forum Forms
    Replies: 1
    Last Post: 09-19-2011, 10:20 AM
  4. Open (sub)form linking 2 criteria on current form
    By websterh in forum Programming
    Replies: 2
    Last Post: 02-07-2011, 11:56 PM
  5. Query criteria in a form
    By sefiroths in forum Queries
    Replies: 1
    Last Post: 12-23-2009, 05:15 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