Thank you for the note. I guess I didn't do a very good job with the
question. I was hoping to avoid the use of any of the functions in
Access like Cdate and the like. Ideally, I want to send the data to
Access in a form that it recognizes as a date/time variable. Perhaps
some background will help a bit.
Step 1 - create a blank table in Access with 3 variables with the
following names and data types.
County - (text)
Hunter Name (text)
Time of harvest (date/time)
Step 2 - Teleform (OCR software) scans forms, captures the data and
after the operator verifies it, an automated export feature sends all
of the data to Access.
Problem is, I have yet to find a way to format the data before it
leaves Teleform that Access will be happy with. Any ":" or text "AM"
in the string causes an error, as you might expect. Access is looking
for a date/time format and it sees text. Thus, back to my original
question, what is Access looking for?
I know that in SAS (Statistical Analysis Software) dates are stored as
a number. For example, 9/20/2005 might be 14085, which is the number
of days since Jan 1, 1960 (that's not exact, but you get the idea). If
you want to add time, the entire thing is converted to seconds since
1960 or some date.
Maybe let me ask another way - if I were entering date time data in
Access at the keyboard, what would it look like?
Does that make more sense?
Mike
pietlinden@hotmail.com wrote:
Quote:
This works for me...
>
?cdate("06/26/2006 11:30 AM")
6/26/2006 11:30:00 AM
?Dateadd("d",1,cdate("06/26/2006 11:30"))
6/27/2006 11:30:00 AM
>
I guess you could use Replace to strip out all the extra spaces if you
had to.