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!

Minute Calculation

Status
Not open for further replies.

yakdogs

Programmer
Aug 13, 2002
40
US
I have a csv file that I am importing and it has a field that I must calculate the amount of minutes, and seconds on. The field in the csv file is set up as 00:00:00.

I am importing the field as:

.Fields("Call_Duration") = IIf(Len(Tokens(1)) = 0, "00:00:00", Tokens(1))

I have the field set up as a number, I get a data type mismatch error. If I set it up as date time it comes in as:
12:00:53 am.

Can any one help me get into a format of 00:00:00 so that I can calculate the minutes and seconds.
 
I think you need to use the Time Format functions look in help under Time there are specific ways of handling time only data
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top