Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Apr 2001
    Location
    Guatemala City
    Posts
    515
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Now() (Win XP Access 2003)

    I need to use the current date in a form to derive another piece of data, but I want it to be fixed. I do not want it to change the following day. Could you give me some guidance?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Now() (Win XP Access 2003)

    Can you explain when the date is to be set and how you want to use it? Should the date be stored in a record in a table, for example?

  3. #3
    Star Lounger
    Join Date
    Jan 2003
    Location
    Manchester, Lancashire, England
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Now() (Win XP Access 2003)

    If you mean that when you create a new record you want to put todays date in, say, a field called [CreationDate] then you can set the default value for that field =Now() if you want date & time or =Date() if you just want the date.

  4. #4
    4 Star Lounger
    Join Date
    Apr 2001
    Location
    Guatemala City
    Posts
    515
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Now() (Win XP Access 2003)

    The comments opened up ideas. I ended up running a macro from the GotFocus event of the date field. The macro just says if the field is null, set it to Now; otherwise, do nothing.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •