Decimal problem

Soegstad

Registered User.
Local time
Today, 07:57
Joined
Dec 3, 2003
Messages
53
Hi
I am using a VBA code to update price and currency values in a drop down menu in a subform. My problem is that the decimals (i want 4) "disappears" through this code.
Does anybody have a solution to this problem?
This is the code I'm using:

Private Sub Product_AfterUpdate()
Me![Price] = Me![Product].Column(4)
Me![Currency] = Me![Product].Column(5)
End Sub

Thanks for your help.
Mads
 
Check either formatts or ensure that nothing (with respect to data types) is set to Long Integer when it should be set to Single or Double
 
Thanks,
seems like I messed up my formats:rolleyes:
Mads
 

Users who are viewing this thread

Back
Top Bottom