Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INIALIZE DATE FIELDS IN A RECORD

Status
Not open for further replies.

JoeVegas

Programmer
Oct 3, 2001
53
US
In each of my records I have 6 date fields using the format:08/13/2002. I need to initialize the entire table recordset (date fields only), following a copy of the table to archive. How can this be done using Access 2000 VBA?
TIA....
 
What do you mean by initialize, make the dates null or zero. What should be in the date field after it is initialized.
 
I guess you would say NULL. The date fields will retain their formatting for a short date so that new dates can be entered again, then copied to archive and again date fields initalized to null? for use again.
 
You should be able to update the date to the keyword NULL.


update yourtable
set date = NULL
where id = something
 
Thanks, I will try that. As I recall I tried an update query with a criteria IS NOT NULL to capture all the assigned date fields but the result was an error denoting NULL's do not apply to date fields.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top