Results 1 to 4 of 4
  1. #1
    emccalment is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    27

    Auto populating date.

    I'm working with a database intended for reporting use. Now, we have certain date fields that need to be entered, and subsequent dates that follow in a timed interval. For instance, we set one date, the other needs to be 110 days prior. Another instance is 90 days past. How can I set those fields to auto-populate based off the entered dates?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Those are calculated values and should not be in your table. Instead, create them with calculated fields in a query using the DateAdd() function.

  3. #3
    emccalment is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    27
    I apologize for my inexperience, but how would I do that. If I wanted to add say 90 days to an existing field, and have them both show up on a report. Would I add it into the format section of the properties? Or how does that work? Thanks

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You use the query builder to create the query. In the Field row (top row) of an empty column in the grid put: YourFieldName: DateAdd("d",-100,[YourOtherFieldName])
    ...using YOUR field names of course.

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

Similar Threads

  1. Populating Fields
    By deiniolj in forum Forms
    Replies: 21
    Last Post: 12-08-2009, 10:51 AM
  2. Self Populating Fields
    By kellyd in forum Access
    Replies: 0
    Last Post: 09-17-2009, 10:20 AM
  3. Populating multiple fields
    By jjcaprio in forum Programming
    Replies: 11
    Last Post: 08-16-2009, 01:51 PM
  4. Self-populating one form from another
    By winter in forum Forms
    Replies: 7
    Last Post: 08-03-2009, 08:02 AM
  5. Replies: 0
    Last Post: 02-26-2009, 03:34 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