Hi Lynn,
If it works in your query then there's should be nothing wrong with your
Library References.
Here's an example of how I can repro the same results you have:
Textbox control name = "Text4"; it's control source = #1/1/03#
Textbox control name = "Text5"; it's control source = DateAdd("m",1,[Text4])
If I change Textbox "Text5" control source equal to
=DateAdd("m",1,[Text14444])
I get #Name? because there is no control named "Text14444"
I hope this helps! If you have additional questions on this topic, please
respond back to this posting.
Regards,
Eric Butts
Microsoft Access Support
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<
http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <
http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."
--------------------
| Content-Class: urn:content-classes:message
| From: "lynn atkinson" <
[email protected]>
| Sender: "lynn atkinson" <
[email protected]>
| Subject: #name? error
| Date: Wed, 18 Feb 2004 07:36:58 -0800
| Lines: 11
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcP2NQu9zRq7Tf2uRj+rATjIywOZGA==
| Newsgroups: microsoft.public.access.forms
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.access.forms:255687
| NNTP-Posting-Host: tk2msftngxa13.phx.gbl 10.40.1.165
| X-Tomcat-NG: microsoft.public.access.forms
|
| I would like to calculate when a course is due to be
| reattended. I have used the date(add) function in a query
| and it works fine. However when I try to display this
| calculated field on a form I get a #name? error.
| How do I do or display this calculation on a form.
| The format of my data is as follows
| "qualification duration" (ie how long the qualification
| lasts eg 6 months, 12 months) and this field is in the
| eventsdetails table.
| "date attended" is a field in the training record table
| Why am I getting the #name error?
|