navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Updating Date Field

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Updating Date Field
Page: [1]
 
ChrisJ

 

Posts: 105
From: Flowery Branch, GA
Status: offline

 
Updating Date Field - 12/28/2001 23:44:25   
Quick question about updating an Access table using a form and the DRW. What I have below works fine to update one text field and one number field.

UPDATE Results
SET Text1='::Text1::', No=::No::

I also want to update a field formatted as a Date in Access. I get a syntax error using either of the above two formats (with and without single quotation mark.) How can a field formatted as a date be updated?

Thanks!



ChrisJ

 

Posts: 105
From: Flowery Branch, GA
Status: offline

 
RE: Updating Date Field - 12/29/2001 0:23:54   
I found what was wrong - I was using DATE as the field name and needed to use [DATE]. Now that it works, one more question.

I want to be able to leave this form field blank at times. For my text fields, I just set the field properties in Access to "Allow Zero Length." I can't figure out how to do this for a field formatted as a date.


(in reply to ChrisJ)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Updating Date Field - 12/29/2001 19:29:30   
Youll need to pass a default date to the database.
If its empty, '' isnt recognized as a date.
Adding a default date of 01/01/01 at step 3 should work.


§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login

(in reply to ChrisJ)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Updating Date Field
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts