K
KyleL
Hi all --
I'm creating a database to house birth certificate data for my job
i have two fields GramsBW (Grams Birth Weight) and LbsBW (Pounds Birth Weight)
when the GramsBW data is entered, i want it to automatically convert it to
Pounds (by multiplying by .002205) and store that data in the table, i've
tried various bits of code, listed below, but every time the calculation is
made, it rounds it to the nearest integer, and i need it to have decimal
places (i.e. 1000 grams = 2.205 pounds, but is displayed and stored as 2
pounds.
---------------------
Private Sub GramsBW_Exit(Cancel As Integer)
LbsBW = (GramsBW) * (0.002205)
End Sub
---------------------
---------------------
Private Sub GramsBW_Exit(Cancel As Long)
LbsBW = (GramsBW) * (0.002205)
End Sub
---------------------
---------------------
Private Sub GramsBW_Exit(Cancel As Double)
LbsBW = (GramsBW) * (0.002205)
End Sub
---------------------
I'm creating a database to house birth certificate data for my job
i have two fields GramsBW (Grams Birth Weight) and LbsBW (Pounds Birth Weight)
when the GramsBW data is entered, i want it to automatically convert it to
Pounds (by multiplying by .002205) and store that data in the table, i've
tried various bits of code, listed below, but every time the calculation is
made, it rounds it to the nearest integer, and i need it to have decimal
places (i.e. 1000 grams = 2.205 pounds, but is displayed and stored as 2
pounds.
---------------------
Private Sub GramsBW_Exit(Cancel As Integer)
LbsBW = (GramsBW) * (0.002205)
End Sub
---------------------
---------------------
Private Sub GramsBW_Exit(Cancel As Long)
LbsBW = (GramsBW) * (0.002205)
End Sub
---------------------
---------------------
Private Sub GramsBW_Exit(Cancel As Double)
LbsBW = (GramsBW) * (0.002205)
End Sub
---------------------