CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 updated date not passing to next form

Print topic Send  topic

Author Message
Sarah
Posted: 03/01/2002, 2:17 PM

I have a feild on a record page called date_added. In the before show event I put flddate_added=date("Y-m-d") So the date is filled in automatically as a label, but when it's time to insert the record the date added on the next page (the grid page) shows 00-00-0000. Why isn't the date being inserted with the record?
Alex Alexapolsky
Posted: 03/02/2002, 3:03 AM

Labels are never inserted. Labels are pure html makrup that has nothing
to do with form elements such as listbox or text area.
Change field type to textbox and if you want , make it read-only.
Sarah
Posted: 03/04/2002, 9:26 AM

Thanks for the help! How do I make it read only?
Tom
Posted: 03/04/2002, 10:43 AM

Another idea is to leave that date as a label and add a hidden field of the same type with the same default value for the date. The hidden field should be tied to your date field in your database.
oishyasan
Posted: 03/05/2002, 6:05 AM

I had this same problem, if you want to show it as a label, you must later insert it into the table - after insert or after update.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.