Results 1 to 14 of 14
  1. #1
    jenncivello is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36

    Add a date

    Hi there,

    I have a training table I have setup, with group numbers and dates. I would like to be able to type the group number and then it automatically puts in the date in the next field. E.g. Group 1 Feb 8/12. Can you please tell me if this is possible and how to do it. I am a basic access user.


    Thanks

  2. #2
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    The dates are already in the DB? Or you want it to fill in the date with the day it was entered?

  3. #3
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    Do an after update event for your group Id
    Date = DLookup("GroupDate", "dbo.TableName", "GroupID = Me.GroupID")

    Hope this helps

  4. #4
    jenncivello is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36
    The dates are already in the DB as a seperate field. and the groups are in another field.

  5. #5
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    So use the DLookup after you enter the group ID

  6. #6
    jenncivello is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36
    is this done in the tabe or query?

  7. #7
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    Visual Basic

  8. #8
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    You should prob do this through a form if your not already, are you trying to create a schedule?

  9. #9
    jenncivello is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36
    ok. yes i am. but i am a basic access user

  10. #10
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    Well I would create a form that inserts data into table then write vb code to auto fill data. do you only have 2 fields?

  11. #11
    jenncivello is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36
    Hi There, Is there an easy way to do this? I am having alot of trouble trying to figue this out. I have a table with my dates and then another table with my users and the training date. But everytme there is a change i have to change the group and date. I would like to be able to just change the group and the date automatically update.

  12. #12
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    well are the date changes always consistent?

  13. #13
    jenncivello is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    36
    yes, they are every wednesday

  14. #14
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    If the dates are randomly chosen by you there is no way the db can tell what to enter for the group date.

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

Similar Threads

  1. Replies: 12
    Last Post: 04-26-2012, 04:01 AM
  2. Replies: 1
    Last Post: 12-12-2011, 06:32 AM
  3. Replies: 1
    Last Post: 12-07-2011, 01:02 PM
  4. Replies: 1
    Last Post: 07-07-2010, 04:22 PM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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