kcolbert01
Registered User.
- Local time
- Today, 12:43
- Joined
- Jan 13, 2003
- Messages
- 36
I have a field called Totals that calculates the dollar amount from six other fields. I would like a message box to appear when the Totals field exceeds $1.00. I would like the meassage to say - "The TOTAL cannot exceed $1.00 - please adjust" and then have the curser go to the first of the six fields that is being added (that first field is called "6A".) So here is my code:
If Me!Totals > 1 Then
MsgBox "The TOTALS box cannot exceed $1.00 - please adjust", vbOKOnly, "TOTALS error!"
DoCmd.GoToControl "6A"
This code gives me the error: Invalid outside procedure.
I had it working and then I did something to mess it all up - I hate when that happens. Anyhow any insight would be much appreciated as I have to have this up and running by today.
If Me!Totals > 1 Then
MsgBox "The TOTALS box cannot exceed $1.00 - please adjust", vbOKOnly, "TOTALS error!"
DoCmd.GoToControl "6A"
This code gives me the error: Invalid outside procedure.
I had it working and then I did something to mess it all up - I hate when that happens. Anyhow any insight would be much appreciated as I have to have this up and running by today.