Run-time error 2450

  • Thread starter Thread starter Ron
  • Start date Start date
R

Ron

OK, this is driving me nuts!

I keep getting a Run-time error 2450
Microsoft Access can't find the form 'frmTotals' referred
to in a macro expression or Visual Basic code.

frmTotals is a subform of frmEnterPayment.

On frmEnterPayment I have an 'if' code setup to check
for:
forms!frmTotals.CurrentValue.Value = 0

I have checked my field name. I have checked my form
name. That is the correct spelling of the form. And I
doubly know it is correct, because if I type it in as:
Forms!Frmtotals.CurrentValue.Value = 0
it corrects it to:
Forms!frmTotals.CurrentValue.Value = 0

I've done this on other forms, so can't figure out what
the heck the problem is. I've tried moving it from 'on
current' to a 'lost focus' on one of the frmEnterPayment
fields, but I receive the same error.

Ideas?

Thanks, R.
 
If it's a subform, use this syntax ...

forms!frmEnterPayment .FORM.frmTotals.CurrentValue.Value = 0
 
Back
Top