R
Rebeca
Hello,
I was recently upgraded to Access 2007 and code that worked in Access
2003 no longer works in 2007. The forms work link this. User enters
data into the main form. When information is entered into the Payment
field, another form popups up requesting more detail as to the payment
type. The 2nd form displays the data that was input in the original
form and when the user clicks accept, it checks to make sure that the
data on the 2nd form matches the first. If it does, the form closes
and returns to the original one. If it does not, a message box pops
up that says "Amounts do not match.Check your entries."
The problem is, in 2007, the amounts DO match, but the message box
keeps coming up and doesn't allow the user to continue. The code works
fine for those still using Access 2003.
Here is the piece of code that is affected. I'm assuming that it is
just a coding change from 2003 and 2007 as I ran into that with acEdit
as well.
' Display message if Total Amounts <> Payments
If Me!Payments <> Me!Total Then
strMsg = "Amounts do not match. Check your entries."
strTitle = "Amounts Do Not Match"
intStyle = vbOKOnly
MsgBox strMsg, intStyle, strTitle
Cancel = False
Any assistance or advice would be appreciated!
Thanks!
I was recently upgraded to Access 2007 and code that worked in Access
2003 no longer works in 2007. The forms work link this. User enters
data into the main form. When information is entered into the Payment
field, another form popups up requesting more detail as to the payment
type. The 2nd form displays the data that was input in the original
form and when the user clicks accept, it checks to make sure that the
data on the 2nd form matches the first. If it does, the form closes
and returns to the original one. If it does not, a message box pops
up that says "Amounts do not match.Check your entries."
The problem is, in 2007, the amounts DO match, but the message box
keeps coming up and doesn't allow the user to continue. The code works
fine for those still using Access 2003.
Here is the piece of code that is affected. I'm assuming that it is
just a coding change from 2003 and 2007 as I ran into that with acEdit
as well.
' Display message if Total Amounts <> Payments
If Me!Payments <> Me!Total Then
strMsg = "Amounts do not match. Check your entries."
strTitle = "Amounts Do Not Match"
intStyle = vbOKOnly
MsgBox strMsg, intStyle, strTitle
Cancel = False
Any assistance or advice would be appreciated!
Thanks!