Update Access with today's date

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Update Access with today's date

    I am creating a form to allow the user to enter new records to an Access
    database. I want to have a hidden field that enters the date of record
    submission.

    Would that be done by setting a value of today() for that named field?

    Thanks
    Durwood


    Durwood Edwards Guest

  2. Similar Questions and Discussions

    1. Help with Today's Date Display
      I have the following code: thisDate = new Date(); var isToday:String; isToday = thisDate.getDate().toString() + "/" +...
    2. Prepopulate DateField with Today's Date
      Below is the code I currently have: import mx.controls.*; private function retrieveDate():void { requestDate.text += new Date(); } ...
    3. Filtering by today's date
      Hi, I'm constructing an exhibitions list page....each entry has an opening date and closing date. The company wants (not sure why, but hey) all...
    4. Code to put today's date into MM-DD-YY format
      I am new to cgi I would like to place a check box on my form. When it is checked & I run my custom Upload cgi script I would like this code to. ...
    5. Date update?
      Does anyone know how to have the date on your home page update automatically? I can't find any code. Thanks in advance! --Nathan
  3. #2

    Default Re: Update Access with today's date

    Here's couple of ways to do it:
    1.
    You can set value of hidden field as #DateFormat(Now(), "mmmm d, yyyy")#, you
    can format date anyway you want.
    2.
    Create Auto Field in access with Date/Time format, so when new record is added
    it will time/date stamp it.

    Cheers

    TiGGi Guest

  4. #3

    Default Re: Update Access with today's date

    Thanks, I have already set format in Access for the date fileds,so should I
    code it thuisly::

    <input NAME="date_submission" TYPE="hidden" VALUE="Now()">
    ?

    Thanks
    Durwood


    "TiGGi" <webforumsuser@macromedia.com> wrote in message
    news:c9q3b2$mke$1@forums.macromedia.com...
    > Here's couple of ways to do it:
    > 1.
    > You can set value of hidden field as #DateFormat(Now(), "mmmm d, yyyy")#,
    you
    > can format date anyway you want.
    > 2.
    > Create Auto Field in access with Date/Time format, so when new record is
    added
    > it will time/date stamp it.
    >
    > Cheers
    >

    Durwood Edwards Guest

  5. #4

    Default Re: Update Access with today's date

    You don't need to do anything at the input end - the database knows what
    time it is and can insert it itself :)


    rob :: digitalburn Guest

  6. #5

    Default Re: Update Access with today's date

    Well that makes it a lot more simple, now, does it not? Guess I should have
    thought about that end of the deal.

    Durwood
    "rob :: digitalburn" <rob@digitalburn.net> wrote in message
    news:c9qbq4$4r3$1@forums.macromedia.com...
    > You don't need to do anything at the input end - the database knows what
    > time it is and can insert it itself :)
    >
    >

    Durwood Edwards Guest

  7. #6

    Default Re: Update Access with today's date

    It does make things pretty easy... :)

    Durwood Edwards wrote:
    > Well that makes it a lot more simple, now, does it not? Guess I
    > should have thought about that end of the deal.

    rob :: digitalburn Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139