Hey guys. I'm sort of new with VB.net but not too new. I know the basics.
I'm working with an Access database created for a Billing system. I have a column in the system called "HoursWorked". This column is a text datatype and all entries are in the x:xx format so an example entry would be "2:30" meaning they worked 2 and a half hours.
Here's what I need to do. In VB.net, I have to take the values in each of these fields and convert them to an integer. So I have to take something like "3:30" with a text data type and turn it into "3.5" integer data type.
Keep in mind that I cannot alter the database in any way. Which includes adding columns or changing column data types. And also keep in mind I have to do this for each field in a 309 record database. So setting it up as a function that I can call on is optimal.
I'm working with an Access database created for a Billing system. I have a column in the system called "HoursWorked". This column is a text datatype and all entries are in the x:xx format so an example entry would be "2:30" meaning they worked 2 and a half hours.
Here's what I need to do. In VB.net, I have to take the values in each of these fields and convert them to an integer. So I have to take something like "3:30" with a text data type and turn it into "3.5" integer data type.
Keep in mind that I cannot alter the database in any way. Which includes adding columns or changing column data types. And also keep in mind I have to do this for each field in a 309 record database. So setting it up as a function that I can call on is optimal.