Date Format

K

KAnoe

I have an Excel sheet that I get that comes with the following date format

8/9/04 1:25:43 PM EDT

Access makes it a Text field. I put the data into a temp table and delete
all the data after the year and then copy and past it into a Date field then
move it from the temp feid to the main table.

I would just like to put it into the temp table and then move it to the main
table. The data from the excel sheet does not all go into the same table so I
will still need the Temp table.

Thanks
 
K

Ken Snell [MVP]

Use an expression similar to this to convert that temp field to the regular
field when you do the append query:

CDate(Left([TempDateField], InStr([TempDateField], " ") - 1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top