J
JAV
Hello,
I have a database that I have been trying to convert into a correct
and recognizable time format. The old db kept time in numeric form
01...2400. The problem is when I try to import this into the new
database using CDate() it gives and error for each 2400 hour. I
understand that Access (2003) expresses 2400 hours as 0:00 but cannot
seem to get the right conversion for the append query. Here is what I
have for the query expression:
TimeValue: Date(IIf([Stored_Sampler_Data]![Time]<60,
(Format([Stored_Sampler_Data]![Time],"00
@")),
(Format([Stored_Sampler_Data]![Time],"@@
@"))))
I have attempted to use the switch function for choosing the case and
that was not successful. I also attempted to use an Or to tack on an
additional conditional test telling it to append 0:00 if
[Stored_Sampler_Data]![Time]="2400" but that forced 0:00 into the
table for every time value. I am stumped. Anyone want to give a hand?
JV
I have a database that I have been trying to convert into a correct
and recognizable time format. The old db kept time in numeric form
01...2400. The problem is when I try to import this into the new
database using CDate() it gives and error for each 2400 hour. I
understand that Access (2003) expresses 2400 hours as 0:00 but cannot
seem to get the right conversion for the append query. Here is what I
have for the query expression:
TimeValue: Date(IIf([Stored_Sampler_Data]![Time]<60,
(Format([Stored_Sampler_Data]![Time],"00
(Format([Stored_Sampler_Data]![Time],"@@
I have attempted to use the switch function for choosing the case and
that was not successful. I also attempted to use an Or to tack on an
additional conditional test telling it to append 0:00 if
[Stored_Sampler_Data]![Time]="2400" but that forced 0:00 into the
table for every time value. I am stumped. Anyone want to give a hand?
JV