re: hidden date entry into database

Discussion in 'ASP.NET / ASP.NET Core' started by steurm, Oct 4, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. a bit easier : use the default property of your date column in access. Set that value to Now()



    --
    Steurm
    www.steurm.net/steurm
     
  2. As Steurm points out, adding a date/time field to the database whose default value is set to now() is simpler, but remember that the field is only set to now() when a record is first inserted.

    If you update a record that has already been added and ish to update the date/time field, you have to do so explicitly.
     
  3. Hello everyone,

    I have a webform which allows a user to fill out personal information for our mailing list. I use web controls to hold these entries as parameters and these are then added to an Access database.

    Here is my question.

    I would like to record the time and date for each entry "under the hood". How can I automatically add the time and date the user is filling out the webform to my database?

    Thanks

    Clint
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    You can create a column in your db schema with date as the data type.

    use this Date.Now to get the current date.


    quote:Originally posted by clint

    Hello everyone,

    I have a webform which allows a user to fill out personal information for our mailing list. I use web controls to hold these entries as parameters and these are then added to an Access database.

    Here is my question.

    I would like to record the time and date for each entry "under the hood". How can I automatically add the time and date the user is filling out the webform to my database?

    Thanks

    Clint
    </blockquote id="quote"></font id="quote">

    B.

    DiscountASP.NET
    http://www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page