T
tbl
My job has presented me with an old database where one of
the things I don't like is the way the time of day has been
setup and entered. It is a number data type, double
precision, and has entries like: "0945", "1005".
Using Access 2000, when I simply change the data type to
"Date/Time", the results are not good (all values change to
"0:00". I did find, however, that if I reset the format of
the field to "@@@", the proper (desired?) time values
would suddenly appear (Access would actually change the
format setting to "@@\@"). I can't seem to find any
reference to the backslash character in the help files. If
I change the format to "general date", then I'm back to
"0:00" values. I would have expected this format setting to
give me a date and time, like: "0/0/00 09:45", or something
along those lines.
My question now is, do I have a truly valid "time" field?
And what is that backslash in the format setting?
I am thinking about putting date and time as one field, but
I think I first need to get the time field straightened out
(the date field is already Date/Time format.
And then of course, try to convince the non-db types at work
(all the others) that it's *good* to use the date/time data
type for dates and times (and *not* name the fields "DATE"
and "TIME").
the things I don't like is the way the time of day has been
setup and entered. It is a number data type, double
precision, and has entries like: "0945", "1005".
Using Access 2000, when I simply change the data type to
"Date/Time", the results are not good (all values change to
"0:00". I did find, however, that if I reset the format of
the field to "@@@", the proper (desired?) time values
would suddenly appear (Access would actually change the
format setting to "@@\@"). I can't seem to find any
reference to the backslash character in the help files. If
I change the format to "general date", then I'm back to
"0:00" values. I would have expected this format setting to
give me a date and time, like: "0/0/00 09:45", or something
along those lines.
My question now is, do I have a truly valid "time" field?
And what is that backslash in the format setting?
I am thinking about putting date and time as one field, but
I think I first need to get the time field straightened out
(the date field is already Date/Time format.
And then of course, try to convince the non-db types at work
(all the others) that it's *good* to use the date/time data
type for dates and times (and *not* name the fields "DATE"
and "TIME").