adding current date into Access using DW form

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

  1. #1

    Default adding current date into Access using DW form

    I've looked all over this forum finding similar solutions but not exactly what
    I'm looking for.

    Relatively simple. My Access 2002 database has a timestamp column using the
    timestamp data type. My form has a hidden field which I wish to use to enter
    the current date and time when a person submits data via the web form into the
    database.

    I can see the record set will produce the date and time, but the date and time
    does not actually go into the timestamp column.

    My hidden field in the form is called timestamp. I've tried using Date() -
    i've tried using {NOW} but for some reason it fails.

    The timestamp field has a value of
    <%= DoDateTime((rstblOnline.Fields.Item("timestamp").V alue), 0, -1) %>

    Can anybody help me with this one?

    Jerry

    Thinking Man Guest

  2. Similar Questions and Discussions

    1. getting the current date
      hi guys I?ve created 3 selection boxes on a form: 1 for the date, with values 1 - 31. 1 for the month, with values 1- 12 1 for the year with...
    2. Saving current date and time in ASP and ACCESS
      Hi all, Im developing a simple web page and Im new to ASP. I want to save the current date and time in my MS ACCESS table I have a field in...
    3. date/time field from access 2000 db getting -1 in textbox on form
      I am stuck in using Access 2000 with on Windows 2000 server. I get a negitive 1 for a value. My code $DB_Conn = new...
    4. Adding Tables to a form in Access 2000
      I created several tables and forms for the individual tables. I also created one additional form that would include data from all of the tables. ...
    5. Autofill current date in field on form
      Need a field to autofill the current date on a form. The user will be filling in one field with a control number and the date field will be the...
  3. #2

    Default Re: adding current date into Access using DW form

    First, be careful with naming conventions - timestamp. It might be reserved
    somewhere.

    Second, the hidden field should be readily available when the form posts as
    the fieldname and accessible via javascript or (more familar to me) php.

    I haven't worked with moving data over between the html session and a
    particular format, like Excel, but once you see the field contents in, say, a
    simple test javascript function (load it into alert()), then you can move on
    from there.


    Mark Richards Guest

  4. #3

    Default Re: adding current date into Access using DW form

    Change the database not your code.
    in access design view set the data type to "date/time".
    At the bottom under the "general" tab find the line that says default value
    and enter Now()
    Now every time a record is added the date and time will automatically be
    added to that column
    Jeremy

    "Mark Richards" <mark.richards@massmicro.com> wrote in message
    news:drdqdg$p1j$1@forums.macromedia.com...
    > First, be careful with naming conventions - timestamp. It might be
    > reserved
    > somewhere.
    >
    > Second, the hidden field should be readily available when the form posts
    > as
    > the fieldname and accessible via javascript or (more familar to me) php.
    >
    > I haven't worked with moving data over between the html session and a
    > particular format, like Excel, but once you see the field contents in,
    > say, a
    > simple test javascript function (load it into alert()), then you can move
    > on
    > from there.
    >
    >

    JEREMY 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