Results 1 to 2 of 2
  1. #1
    Ant_Snell is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    118

    Criteria > a date in another field problem

    I have a relatively simple query containing two linked tables. One containing authorisation number the other containing appointments. I am trying to filter the query to only show records where the Use_By (Date field) in the tbl_Authorisation > AptDate (Date field) in the appointment table.



    On the criteria line of the Use_By field I have entered >#[AptDate]# but get a “The expression you have entered has an invalid date value” both the AptDate & AptDate are date type

    Any suggestions to what I am doing wrong?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    you dont need # sign when using field names. (only for literals)

    table1.[Use_By] >table2.[AptDate]

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

Similar Threads

  1. Replies: 7
    Last Post: 10-02-2021, 03:06 PM
  2. Replies: 2
    Last Post: 09-11-2015, 12:42 PM
  3. Replies: 20
    Last Post: 01-13-2015, 02:23 PM
  4. Date Criteria Problem
    By stumped in forum Queries
    Replies: 10
    Last Post: 09-20-2012, 06:02 AM
  5. problem with date criteria
    By sbrooks1763 in forum Queries
    Replies: 1
    Last Post: 01-10-2012, 07:30 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