A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#Name? error with unbound text box



 
 
Thread Tools Display Modes
  #1  
Old February 15th, 2006, 12:46 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default #Name? error with unbound text box

Hello,

I have created a form that contains information about churchmembers and
their financial status. In the form, I created an unbound text box and tried
to use the Expression builder to take the member name from the member table
and place it in the text box.

For example:
Member Table Summary Form
Name unbound text box contains member name
Address unbound text box contains info from
other tables
City
State
Zip

I know that I could use the form design wizard to link the form to the table
however I need to input information into the form from other tables as well.
That is why I am using an unbound text box.

Here is my problem:
I create the text box, go to the expression builder and input the following:
=[Church Members]!FirstName

The above expression gives me the following error: #Name?

What am I doing wrong. Please walk me step-by-step since I am not an expert
with Access and the Expression Builder.
Thanks
  #2  
Old February 15th, 2006, 01:57 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default #Name? error with unbound text box

Use DLookup() to get the field value from the table.

Assuming the form has a MemberID (number) field, the Control Source of your
text box would be something like this:
=DLookup("FirstName], "[Member Table]", "[MemberID] = " &
Nz([MemberID],0))

For an explanation, see:
Getting a value from a table: DLookup()
at:
http://allenbrowne.com/casu-07.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"HL" wrote in message
...

I have created a form that contains information about churchmembers and
their financial status. In the form, I created an unbound text box and
tried
to use the Expression builder to take the member name from the member
table
and place it in the text box.

For example:
Member Table Summary Form
Name unbound text box contains member
name
Address unbound text box contains info from
other tables
City
State
Zip

I know that I could use the form design wizard to link the form to the
table
however I need to input information into the form from other tables as
well.
That is why I am using an unbound text box.

Here is my problem:
I create the text box, go to the expression builder and input the
following:
=[Church Members]!FirstName

The above expression gives me the following error: #Name?

What am I doing wrong. Please walk me step-by-step since I am not an
expert
with Access and the Expression Builder.
Thanks



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Looking for Help Little Penny Using Forms 6 December 27th, 2005 08:33 PM
Query for 'confirmation' rogge Running & Setting Up Queries 8 April 19th, 2005 03:26 PM
Change font of part of text John Powerpoint 7 March 15th, 2005 10:10 AM
Help with design Ronnie Database Design 6 March 12th, 2005 02:53 PM
Access reports with a horizontal line after each record??? Bill via AccessMonster.com Setting Up & Running Reports 6 March 9th, 2005 04:51 PM


All times are GMT +1. The time now is 09:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.