jt463
IS-IT--Management
- Nov 23, 2005
- 134
I am getting a 3421 Run-Time error 'Data type Conversion Error' on the following:
The IntRst!InterestRate data type is set to 'Number', Field Size is 'Integer', and format is 'Percent' with '2' Decimal Places.
The Me.interest_ property has a Format of 'General Number'.
Any help would be greatly appreciated.
Code:
Dim IntDb As DAO.Database
Dim IntRst As DAO.Recordset
Set IntDb = CurrentDb
Set IntRst = IntDb.OpenRecordset("select * from LoanInterestRate")
Me.interest_ = Format(Me.interest_, "percent")
DoCmd.SetWarnings (False)
IntRst.Edit
IntRst!InterestRate = Me.interest_
IntRst.Update
IntRst.Close
DoCmd.Close
The IntRst!InterestRate data type is set to 'Number', Field Size is 'Integer', and format is 'Percent' with '2' Decimal Places.
The Me.interest_ property has a Format of 'General Number'.
Any help would be greatly appreciated.