Hello:
I have a table in an access database that was developed by another person several years ago. In this table there is a field named TRAVTIME. It is for staff to enter time they spent travelling to and form worksites. Unfortunately the original programmer set it as a text field. And also unfortunately, some staff have been entering their time into this field as "20 minutes" for example (the word minutes is actually spelled out in the field). I now have been tasked to perform some math functions on the datbase, for example calculate the total time staff spent travelling last month. If I attempt to convert the TRAVTIME field to a number, access tells me it will delete all the data. There are several thousand records in this table. I need a macro or vba code to remove the word "minutes" from all the records in this field wherever it exists, so that I can then convert the field to a number. Thanks in advance.
I have a table in an access database that was developed by another person several years ago. In this table there is a field named TRAVTIME. It is for staff to enter time they spent travelling to and form worksites. Unfortunately the original programmer set it as a text field. And also unfortunately, some staff have been entering their time into this field as "20 minutes" for example (the word minutes is actually spelled out in the field). I now have been tasked to perform some math functions on the datbase, for example calculate the total time staff spent travelling last month. If I attempt to convert the TRAVTIME field to a number, access tells me it will delete all the data. There are several thousand records in this table. I need a macro or vba code to remove the word "minutes" from all the records in this field wherever it exists, so that I can then convert the field to a number. Thanks in advance.