Ian, Randy,

Just a plain insert and I fear that is the problem...only I don't work with CF 
enough to know the coding tips.

Here it is below:

<cfquery name="off" datasource="off">
Insert into off 
(
formdate,
admin,
side1collectionsdate,
side2collectionsdate,
side3collectionsdate,
side4collectionsdate,
side5collectionsdate
)
VALUES 
(
'#form.formdate#',
'#form.admin#',
'#form.side1collectionsdate#',
'#form.side2collectionsdate#',
'#form.side3collectionsdate#',
'#form.side4collectionsdate#',
'#form.side5collectionsdate#'
)
</cfquery>
-----Original Message-----
From: Adkins, Randy [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 27, 2005 12:45 PM
To: CF-Talk
Subject: RE: OT SQL date/time default


On the INSERT query are you setting the field to '' or
NULL?

If you use 

myDate = '' then yes you will more than likely get that
Type of date, try using 
myDate = NULL

 

-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 27, 2005 12:37 PM
To: CF-Talk
Subject: RE: OT SQL date/time default

Randy default is now (null) and allow nulls is checked, but when filed
is blank and submitted 1/1/1900 is inserted.

-----Original Message-----
From: Adkins, Randy [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 27, 2005 12:07 PM
To: CF-Talk
Subject: RE: OT SQL date/time default


Check to see if the Default Value of the field is set.
Else you can insert a NULL to the field based on the INSERT query


-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 27, 2005 12:03 PM
To: CF-Talk
Subject: OT SQL date/time default

I have a form that if the date field is blank SQL automatically inserts
the date of 1/1/1900 and then this displays.

How can I have it leave this field blank? The column is set as datetime
in design view.

Thx.

Robert O.










~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191969
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to