Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Thinking Man #1
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
-
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... -
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... -
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... -
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. ... -
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... -
Mark Richards #2
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
-
JEREMY #3
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



Reply With Quote

