Results 1 to 6 of 6
  1. #1
    Christine Boissoin is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Jun 2005
    Posts
    9

    Query Field = Query Field

    My query has (2) calculated fields:

    Field 1: ApptDateOnly: DateValue([DateTime])
    Field 2: EventDateOnly: DateValue([EventDateTime])

    I want my query to return only records where these two fields are equal.

    When I reference either field name in a a where criteria - it acts like it is a parameter query seeking input.

    Any ideas what I'm doing wrong?
    Thanks.
    CB

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    I have 1 question in Field 2 you show EventDateOnlyatevalue([EventDateTime]) but in Field 1 you show APPTDATEONLYateValue([DateTime]) Is [DATETIME] the actual field name or should it be APPTDATETIME which would be consistent with Field 2????

  3. #3
    Christine Boissoin is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Jun 2005
    Posts
    9
    [DateTime] and [EventDateTime] are the actual field names - I just needed the date value (not including the time).

    Christine

  4. #4
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Then This is what I would do in the Column in the query have
    Eventatevalue([Eventdatetime]) as the Field Value
    DateValue([datetime]) as the criteria value

  5. #5
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    dont know why theat stupid happy face keeps getting into my posts.

  6. #6
    Christine Boissoin is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Jun 2005
    Posts
    9
    Worked perfectly - thanks.
    CB

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

Similar Threads

  1. Select Query > Update Query > Table Field
    By tuggleport in forum Queries
    Replies: 2
    Last Post: 08-09-2012, 07:04 AM
  2. Replies: 1
    Last Post: 08-31-2011, 04:03 PM
  3. Reduce field size in query field
    By escapades_access in forum Queries
    Replies: 9
    Last Post: 03-13-2011, 12:21 PM
  4. Replies: 3
    Last Post: 04-26-2010, 11:38 AM
  5. Calculated Query Field used in different Query
    By cakdhooper in forum Queries
    Replies: 0
    Last Post: 11-21-2008, 03:07 PM

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