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  

Adding a field from another table on a form



 
 
Thread Tools Display Modes
  #1  
Old December 3rd, 2009, 03:49 PM posted to microsoft.public.access.forms
FergusonH
external usenet poster
 
Posts: 13
Default Adding a field from another table on a form

I'm trying to add a field to my master form from another table. I created a
relationship between the master table and the other table, but even after
I've updated the control source to = [table]![field] all of the results are
showing as "#Name?" .

I know I'm doing something silly, please help me.
  #2  
Old December 3rd, 2009, 04:11 PM posted to microsoft.public.access.forms
BruceM via AccessMonster.com
external usenet poster
 
Posts: 448
Default Adding a field from another table on a form

To add a field it needs to be in the report's Record Source. Use a query
rather than a table. However, a query based on related tables may not be
updatable. You have provided few details, so it is difficult to be specific,
but typically a subform is used to add/display/edit related records.
The problem (or one of the problems at least) with your attempted Control
Source is that it does not specify a record. Since the field is not in the
form's Record Source there is no way for Acces to know which record you want
to display.

FergusonH wrote:
I'm trying to add a field to my master form from another table. I created a
relationship between the master table and the other table, but even after
I've updated the control source to = [table]![field] all of the results are
showing as "#Name?" .

I know I'm doing something silly, please help me.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200912/1

  #3  
Old December 3rd, 2009, 04:13 PM posted to microsoft.public.access.forms
BruceM via AccessMonster.com
external usenet poster
 
Posts: 448
Default Adding a field from another table on a form

That was supposed to be "To add a field it needs to be in the form's Record
Source". The statement would apply to reports, but that's not what you are
asking about.

FergusonH wrote:
I'm trying to add a field to my master form from another table. I created a
relationship between the master table and the other table, but even after
I've updated the control source to = [table]![field] all of the results are
showing as "#Name?" .

I know I'm doing something silly, please help me.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200912/1

 




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


All times are GMT +1. The time now is 11:32 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.