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

Converting table values

Status
Not open for further replies.

Delameko

Programmer
Oct 14, 2003
37
GB

I've been given a database to work with containing 3500 records.

After trying (and failing) to get it to work properly with my ASP code I discovered that the three date fields (day 00, month 00, year 0000) were all text fields.

Is there any easy way convert these to number/dates? (Maybe day/month/year into the date format 00/00/0000 in one field?)


(I am a newbie, and am still learning my way way round databases, so go easy ;-P)
 
Hello:

What you want to do is concatenate all the fields together and then use the CDate function. This should do it.

Regards
Mark
 
Or in one step returning true date data

DateSerial(TheYearField, TheMonthField, TheDayField)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top