Run-time error 2450

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.
 
D

Danny J. Lesandrini

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top