I have drop down boxes that enable a person to select a date, month and a year. I then concatenate the string to deliver data that is then inserted into a date/time field in Access.
All was fine until I realized the field was only inserting 12/30/1899 as the date into the table.
Here is the code as it is processed in various sections.
CONCATENATE-CODE
<CFSET variables.DOBDate = form.ProspForm_DOB_Mth&"/"&form.ProspForm_DOB_Dt&"/"&form.ProspForm_DOB_Yr>
DATA INSERT CODE
<CFQUERY NAME="Insert" DATASOURCE="DSN">
INSERT INTO ProsFormList (ProspForm_DOB,...)
VALUES (#variables.DOBDate#,...)
Now, because I display the form enteries before the use can confir the data and the submit them into the database, i know the submitted values for month, date and year are being retained until they get entered into the database - so I have a screw up somewhere in my concatenation code or the date insert code.
Any advice would be greatly appreciated!
All was fine until I realized the field was only inserting 12/30/1899 as the date into the table.
Here is the code as it is processed in various sections.
CONCATENATE-CODE
<CFSET variables.DOBDate = form.ProspForm_DOB_Mth&"/"&form.ProspForm_DOB_Dt&"/"&form.ProspForm_DOB_Yr>
DATA INSERT CODE
<CFQUERY NAME="Insert" DATASOURCE="DSN">
INSERT INTO ProsFormList (ProspForm_DOB,...)
VALUES (#variables.DOBDate#,...)
Now, because I display the form enteries before the use can confir the data and the submit them into the database, i know the submitted values for month, date and year are being retained until they get entered into the database - so I have a screw up somewhere in my concatenation code or the date insert code.
Any advice would be greatly appreciated!