error when displayed as subform, but not when displayed as standal

  • Thread starter Thread starter Xero
  • Start date Start date
X

Xero

hello,

i have a field on a form which calculates and displays the number of records
(using the 'count' expression).

when I open the form as a standalone form, the field displays correctly; but
when I open the form as a subform of another form, it says #error.

what would cause such a problem?

thanks.

Jeff
 
hello,

i have a field on a form which calculates and displays the number of records
(using the 'count' expression).

when I open the form as a standalone form, the field displays correctly; but
when I open the form as a subform of another form, it says #error.

what would cause such a problem?

An error in the calculation expression... which I cannot see from here. Care
to post it so someone could help?
 
hello,

i have a field on a form which calculates and displays the number
of records (using the 'count' expression).

when I open the form as a standalone form, the field displays
correctly; but when I open the form as a subform of another form,
it says #error.

what would cause such a problem?

thanks.

Jeff
You have some reference to the form's name in the code.
When you open a form in a subform control on another form, it loses
it's name and becomes known as
Forms![MainForm]![subformcontrolName].Form![formname]
 

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

Back
Top