C
Chuck Smith
I'm fairly new to Access (but have been in computer tech support,
including database support, for over 20 years). I'm using Access 2002 SP3.
I'm troubleshooting a problem where I get the #Name? error on a form.
I've created a stripped-down scenario and can duplicate the problem
consistently:
Table1 has the following three fields:
PrimaryKey (AutoNumber)
Name (Text)
DOB (Date/Time) [Date of Birth]
Query1 is to provide calculated fields for various forms & reports, and
currently contains only 1 field:
AgeToday (AgeToday: DateDiff("y",[DOB],Now())/365.25)
The AgeToday calculated field works fine in the Query datasheet.
I created "Form1" (AutoForm: Columnar) based on Table1. In the form's
Design View I then added an Unbound text box. For its Control Source I
used the Expression Builder to come up with the following:
=Query1!AgeToday
When I view Form1, I get #Name? where the AgeToday value should be.
What am I doing wrong?
Thanks,
....Chuck
P.S. I've got to say that I think Access is probably the most
infuriating program I've used in my entire IT career, and I'm not the
kind of person who infuriates easily!
including database support, for over 20 years). I'm using Access 2002 SP3.
I'm troubleshooting a problem where I get the #Name? error on a form.
I've created a stripped-down scenario and can duplicate the problem
consistently:
Table1 has the following three fields:
PrimaryKey (AutoNumber)
Name (Text)
DOB (Date/Time) [Date of Birth]
Query1 is to provide calculated fields for various forms & reports, and
currently contains only 1 field:
AgeToday (AgeToday: DateDiff("y",[DOB],Now())/365.25)
The AgeToday calculated field works fine in the Query datasheet.
I created "Form1" (AutoForm: Columnar) based on Table1. In the form's
Design View I then added an Unbound text box. For its Control Source I
used the Expression Builder to come up with the following:
=Query1!AgeToday
When I view Form1, I get #Name? where the AgeToday value should be.
What am I doing wrong?
Thanks,
....Chuck
P.S. I've got to say that I think Access is probably the most
infuriating program I've used in my entire IT career, and I'm not the
kind of person who infuriates easily!