Not sure if this is the right forum to ask this but here goes.
Getting errors "TYPE MISMATCH" with following code:
With objSource.adoRsPyrlCalc4Ded
.AddNew
!EMPNO = strEmployee_Number
!DedNo = Me.txt1(Index - 4).Text
!DEPT = "1"
!AMOUNT = Me.txt1(Index).Text
!LIMIT = Me.txt1(Index - 1).Text
.Update
End With
In the Access 2000 database I have assigned datatype NUMBER to all fields. As you can see I am using text boxes to fill many of the database fields. When I have no numbers in the text box but a "" I get a type mismatch. How do I handle that situation?
I also have the same situation with text boxes bound as part of a binding collection. When I try to update the binding collection I get the same type mismatch error.
Any help is appreciated.
TNN, Tom
TNPAYROLL@AOL.COM
TOM
Getting errors "TYPE MISMATCH" with following code:
With objSource.adoRsPyrlCalc4Ded
.AddNew
!EMPNO = strEmployee_Number
!DedNo = Me.txt1(Index - 4).Text
!DEPT = "1"
!AMOUNT = Me.txt1(Index).Text
!LIMIT = Me.txt1(Index - 1).Text
.Update
End With
In the Access 2000 database I have assigned datatype NUMBER to all fields. As you can see I am using text boxes to fill many of the database fields. When I have no numbers in the text box but a "" I get a type mismatch. How do I handle that situation?
I also have the same situation with text boxes bound as part of a binding collection. When I try to update the binding collection I get the same type mismatch error.
Any help is appreciated.
TNN, Tom
TNPAYROLL@AOL.COM
TOM