Results 1 to 2 of 2
  1. #1
    wali60 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    1

    Date Fields

    Hi Everyone, Thanks for any help in advance.
    I'm not sure of this but here goes.
    I have 2 fields, Date Issued and Next Available Date.
    Date Issued is the current date (usually a Thursday or Saturday)

    Next Available Date needs to calculate the date 2 months from the Date Issued field and enter the result in the Next Available Date field.

    I have tried this in the Next Available Date field =[Date Issued] + 60 but it doesn't work.


    It seems to be a pretty simple thing but I'm tearing out whats left of my hair.
    The DB is for a non profit group supplying food hampers to those in need and the 2 month is the next date the client can be helped.

  2. #2
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    Is this: =[Date Issued] + 60

    in the ControlSource for the field?

    If so, it won't work if you're trying to actually save to the [Next Available Date] field. You'll need to put this in vba code for some event (ie. AfterUpdate of some field) as something like me.[Next Available Date].value = [Date Issued] + 60. Note though that you need to trigger this code on some event. This could be something such as the OnCurrent or OnOpen event of the form so that it gets updated whenever that record is opened. (also note: if updating a value in a field on a form's event (ie. such as the OnCurrent event), you should also issue a 'Refresh' command in code after updating the field. Otherwise you can get 'write conflict type' errors, especially if that field is also being updated on the form itself.)

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

Similar Threads

  1. Filter By Date In Different Fields
    By Douglasrac in forum Queries
    Replies: 13
    Last Post: 03-21-2011, 05:24 PM
  2. Look for blank date fields
    By NOTLguy in forum Programming
    Replies: 3
    Last Post: 10-17-2010, 07:56 AM
  3. Default Date in Date Fields
    By rickn in forum Access
    Replies: 5
    Last Post: 04-14-2010, 01:30 PM
  4. one date entered to hit 3 fields in one table how?
    By techexpressinc in forum Queries
    Replies: 0
    Last Post: 12-10-2008, 10:43 AM
  5. Date Calculation within same fields
    By mslieder in forum Queries
    Replies: 3
    Last Post: 01-26-2006, 10:08 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