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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Tables



 
 
Thread Tools Display Modes
  #1  
Old February 29th, 2008, 06:46 PM posted to microsoft.public.access
Harvard
external usenet poster
 
Posts: 14
Default Tables

I have 2 tables: Table1 & Table2. There is a one to many relationship
between Table1 and Table2. I have a form based on Table2. I built the form
after there was already data in tables1 & 2. The form successfully enters
data into Table2. I have a subdatasheet that links all records in table2 to
the records in table1. i can see all data that was originally in table 2,
but nothing that has been entered in table2 from that form. Does anyone know
why?????
  #2  
Old February 29th, 2008, 08:42 PM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Tables

On Fri, 29 Feb 2008 10:46:01 -0800, Harvard
wrote:

I have 2 tables: Table1 & Table2. There is a one to many relationship
between Table1 and Table2. I have a form based on Table2. I built the form
after there was already data in tables1 & 2. The form successfully enters
data into Table2. I have a subdatasheet that links all records in table2 to
the records in table1. i can see all data that was originally in table 2,
but nothing that has been entered in table2 from that form. Does anyone know
why?????


I'm confused. You say "The form successfully enters data into Table2" and
"nothing has been entered in Table2".

What's the Recordsource property of the form? How are you ascertaining that
nothing has been entered? If you have a one to many relationship, do you have
some provision for entering the foreign key link to Table1? Ordinarily one
would use a Form based on Table1 with a Subform based on Table2, using the
appropriate fields in the master/child linking field properties.
--
John W. Vinson [MVP]
  #3  
Old February 29th, 2008, 09:30 PM posted to microsoft.public.access
Harvard
external usenet poster
 
Posts: 14
Default Tables

actually, that's exactly what i did. so, the record source for the form is
actually Table1. And the form, does have the subform for Table 2. The
problem is when I enter data in the subform Table 2. The form shows that the
data has been successfully entered. So then I go to the actual table: Table
2 and verify that the data is there. It is. However, when I go to table
one, and access the subdatasheet (Table 2) the records are not there.

"John W. Vinson" wrote:

On Fri, 29 Feb 2008 10:46:01 -0800, Harvard
wrote:

I have 2 tables: Table1 & Table2. There is a one to many relationship
between Table1 and Table2. I have a form based on Table2. I built the form
after there was already data in tables1 & 2. The form successfully enters
data into Table2. I have a subdatasheet that links all records in table2 to
the records in table1. i can see all data that was originally in table 2,
but nothing that has been entered in table2 from that form. Does anyone know
why?????


I'm confused. You say "The form successfully enters data into Table2" and
"nothing has been entered in Table2".

What's the Recordsource property of the form? How are you ascertaining that
nothing has been entered? If you have a one to many relationship, do you have
some provision for entering the foreign key link to Table1? Ordinarily one
would use a Form based on Table1 with a Subform based on Table2, using the
appropriate fields in the master/child linking field properties.
--
John W. Vinson [MVP]

  #4  
Old March 1st, 2008, 02:15 AM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Tables

On Fri, 29 Feb 2008 13:30:00 -0800, Harvard
wrote:

actually, that's exactly what i did. so, the record source for the form is
actually Table1. And the form, does have the subform for Table 2. The
problem is when I enter data in the subform Table 2. The form shows that the
data has been successfully entered. So then I go to the actual table: Table
2 and verify that the data is there. It is. However, when I go to table
one, and access the subdatasheet (Table 2) the records are not there.


Well, then there's something wrong with the linking to the subdatasheet. On
what field are the tables related? Is the foreign key to Table1 in fact filled
in correctly? What are the properties of the subdatasheet? I never use
subdatasheets so I'm not sure what might be wrong...
--
John W. Vinson [MVP]
 




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:43 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.