B
Bonnie
Hello everyone. Using A02 on XP. Have a form that requires
entry of an amount twice for verification purposes. My
msgbox works fine but this morning a tech called me over.
She was getting the error but was looking at the fields
and they looked the same; 20002.00. However, when I put
the cursor into Me.Amount, I saw 20002.002. Didn't see the
third digit until then. I would like to have my msgbox
state "The 2 amounts do not match. The original amount
keyed in was: 20002.002. Please verify your data and make
appropriate corrections." I have both fields formatted for
2 decimals and thought that would do it.
How can I add a field value to my message box and is there
a way to not allow more than 2 decimals? Both issues can
be used elsewhere so I'd love to find a solution for each.
Thanks in advance for any help and advice. I really,
really love learning stuff here!!!
Private Sub VerifyAmt_AfterUpdate()
Me.Amount.Visible = True
If Me.VerifyAmt <> Me.Amount Then
MsgBox "The 2 amounts do not match. Please verify
your data and make appropriate corrections."
End If
End Sub
entry of an amount twice for verification purposes. My
msgbox works fine but this morning a tech called me over.
She was getting the error but was looking at the fields
and they looked the same; 20002.00. However, when I put
the cursor into Me.Amount, I saw 20002.002. Didn't see the
third digit until then. I would like to have my msgbox
state "The 2 amounts do not match. The original amount
keyed in was: 20002.002. Please verify your data and make
appropriate corrections." I have both fields formatted for
2 decimals and thought that would do it.
How can I add a field value to my message box and is there
a way to not allow more than 2 decimals? Both issues can
be used elsewhere so I'd love to find a solution for each.
Thanks in advance for any help and advice. I really,
really love learning stuff here!!!
Private Sub VerifyAmt_AfterUpdate()
Me.Amount.Visible = True
If Me.VerifyAmt <> Me.Amount Then
MsgBox "The 2 amounts do not match. Please verify
your data and make appropriate corrections."
End If
End Sub