hey guys i am trying to convert 2 different strings to integers then divide by each other to return another value (this is just a test at the moment for my rego details) but i keep getting a data mismatch error on the following code. I also should mention the hardwareid contains alpha as well as numeric so i want to be able to convert the whole field to a numeric value.
Me.txtREGO = CDbl(Me.txtHARDWAREID) / CDbl(Me.txtSERIAL)
any help would be appreciated
ps this error also happens with Cint
Me.txtREGO = CDbl(Me.txtHARDWAREID) / CDbl(Me.txtSERIAL)
any help would be appreciated
ps this error also happens with Cint
Last edited: