Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Dano60 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2015
    Posts
    32
    Hi,

    I fixed it by adding the Bold red Then

    If tempDate < CDate("6/15/" & Year(Date)) Then
    CalcDateTerminaison = CDate("6/15/" & Year(Date))
    ElseIf tempDate > DateExp Then
    CalcDateTerminaison = DateExp
    Else
    CalcDateTerminaison = tempDate
    End If

    Thanks very much for your help.



    Dan

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Doh! I should have seen that - case of seeing what is expected even if it isn't there. Sorry it was omitted from my example. Glad you figured it out.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #18
    Dano60 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2015
    Posts
    32
    Thanks again

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 07-23-2014, 07:37 AM
  2. Replies: 3
    Last Post: 02-06-2014, 10:17 AM
  3. Replies: 5
    Last Post: 12-22-2012, 01:36 PM
  4. Replies: 3
    Last Post: 02-23-2012, 06:29 PM
  5. Emailing report to address held in field
    By ham355 in forum Reports
    Replies: 4
    Last Post: 02-21-2012, 01: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