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  

Main \ Sub Form Data



 
 
Thread Tools Display Modes
  #1  
Old October 19th, 2009, 02:44 AM posted to microsoft.public.access.forms
NelsoMik
external usenet poster
 
Posts: 1
Default Main \ Sub Form Data

I have a Main Form that is based on a Table I have named Personnel. I have a
SubForm that is based on the Authorizations Table. The Two Tables are linked
using the field WMWMNum which is the same type in both Tables. The SubForm is
inserted into the Main Form.

The problem is that when I enter data in the SubForm, it initially displays
correctly and does not affect the data in the Main Form. Then, after closing
the form and reopening it, the Main Form will begin to display a duplicate
record for each entry that has been entered in the SubForm. Each of these
entries on the Main Form show up as a record when scrolling through the
records. The record count is increased accordingly on the form only. When I
look in the DataSheet View the duplicates are not there. The only way I have
been able to get rid of them is to delete the record but then the problem
repeats itself. I have tested it on multiple records with the same result.
Any ideas would be appreciated.
Mike

  #2  
Old October 19th, 2009, 03:39 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Main \ Sub Form Data

On Sun, 18 Oct 2009 18:44:01 -0700, NelsoMik
wrote:

I have a Main Form that is based on a Table I have named Personnel. I have a
SubForm that is based on the Authorizations Table. The Two Tables are linked
using the field WMWMNum which is the same type in both Tables. The SubForm is
inserted into the Main Form.

The problem is that when I enter data in the SubForm, it initially displays
correctly and does not affect the data in the Main Form. Then, after closing
the form and reopening it, the Main Form will begin to display a duplicate
record for each entry that has been entered in the SubForm. Each of these
entries on the Main Form show up as a record when scrolling through the
records. The record count is increased accordingly on the form only. When I
look in the DataSheet View the duplicates are not there. The only way I have
been able to get rid of them is to delete the record but then the problem
repeats itself. I have tested it on multiple records with the same result.
Any ideas would be appreciated.
Mike


Sounds like the mainform is based - not on the Personnel table - but on a
Query joining the personnel table to the Authorizations table. It shouldn't
be! Open the main form in design view and view its Properties; on the Data tab
the first tab is "Recordsource". What's in it?

It *should* be either just the Personnel table, or a query selecting the
desired records from the Personnel table. It should NOT include the other
table.
--

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 02:10 AM.


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