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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combine fields and insert into a database. 2

Status
Not open for further replies.

ahksar

Programmer
Jan 11, 2001
43
US
Hi,
I have 3 pull down menus for a user to select a date, and I want to put these 3 seperate fields(day, month, year) into one date field in an access database, so that I can sort out entries by this date. Is there any way i could do this?
Thanks
ahksar
 
Hey ahksar,

Is this what you need?

<cfquery ...

insert into table1
( myDate )
values (#createodbcdate(&quot;#form.month#/#form.day#/#form.year#&quot;)#)
</cfquery>

Hope this helps,
GJ
 
It works!, Thanks for your help Gunjack .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top