Results 1 to 3 of 3
  1. #1
    Derrick T. Davidson is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    142

    Simple (I Think)

    Please be aware super newbie I just figured out there is two F's in if



    All I want to do do is get the last date in a query sometimes the cell (field) is blank, I just need something like:

    Date: MAX( [Date1], [Date2], [Date3] )

    I know this doesn't work cos I tried it already

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Have you tried the Dmax() function. It may be the simplest aproach. Problem is that you will need to take three trips to the data, once for each field. The other option, to make things a litle faster will require more code.

  3. #3
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    The MAX function is an aggregate function that works on a single fields across many records (not checking multiple fields across a single record).
    Your question could be indicative of a normalization issue (tables not structured properly).
    What do the three date fields represent?
    What other information is found in the records?

    BTW, the Immediate If statement has two "I"s, not two "F"s!

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

Similar Threads

  1. Simple Msg Box
    By Derrick T. Davidson in forum Forms
    Replies: 3
    Last Post: 05-18-2013, 03:20 PM
  2. This is a simple one
    By bbrazeau in forum Reports
    Replies: 3
    Last Post: 02-22-2012, 11:34 AM
  3. Sure It is very simple Yes/No
    By easedaway in forum Access
    Replies: 5
    Last Post: 02-02-2012, 11:40 AM
  4. Replies: 0
    Last Post: 10-21-2010, 08:24 AM
  5. Simple Export Not So Simple
    By jgelpi16 in forum Programming
    Replies: 11
    Last Post: 09-01-2010, 07:23 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