Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / December 2007

Tip: Looking for answers? Try searching our database.

table linkage and sub forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NES - 30 Dec 2007 07:48 GMT
Using Access 2003 in XP SP2 ...
I have a simple DB consisting of three tables. All three have a common field
called "Volunteer Number".  The primary table is linked to the other two
tables in a one (primary table) -to-many (other tables) relationship.

The data entry form contains a tabbed control consisting of three tabs:
First tab is a continuation of the main form of data that does not need to
remain visible at all times. Second and third tabs are sub forms for each of
the other tables.

These two are continuous forms that by themselves show proper linkage to
their respective tables and display the Volunteer Number.

The primary form uses a query for it's data -- only because I needed to add
a single field in the query for "LastName FirstName" to do a record lookup in
the primary form header.

Once the sub forms were in place I had a very difficult time getting one of
them to progress with the primary form records, though the other form worked
fine. I finally deleted the faulty sub form and created a new one with the
wizard using all the default settings. Then it worked. Great!

Then, using a copy of the working DB (I'm getting smarter) I went in and
edited (shortened) the table names and sub form names. I went into each of
the forms' properties and corrected the Data source tables, and they show the
data in their tables corrrectly. However, now neither of the sub forms are
working properly(progressing with the primary form records) when brought into
the primary form.

I have tried rebuilding one of them as I did before, but this time it didn't
correct the problem. I'm at a loss as to why the sub forms are not linking
properly with the primary form. They show up all right -- they just don't
show the data that's already in the linked tables.

I can use the original DB and simply leave it alone if I must. But if
something were to go wrong with that one also, I wouldn't have a clue how to
fix it because I don't know where the problem lies.  It's scary.

Can anyone tell me what I'm doing wrong?  BTW, I've tried the old Compact
and repair bit. Also, please note that I've written several DBs using sub
forms and even a sub sub form in the past with no problems.

My sincere thanks to anyone willing to tackle this problem.

Signature

Norm Shimmel
Butler, PA

Baz - 30 Dec 2007 09:11 GMT
I maybe stating the obvious here, but have you checked the Link Child Fields
and Link Master Fields properties of your sub form controls?  You don't
mention this anywhere.

> Using Access 2003 in XP SP2 ...
> I have a simple DB consisting of three tables. All three have a common
[quoted text clipped - 49 lines]
>
> My sincere thanks to anyone willing to tackle this problem.
NES - 30 Dec 2007 11:40 GMT
It's not all that obvious.  I spent an hour looking for those properties (I
had seen them before) and discovered that I could only see them the first
time I clicked on one of the controls in the sub form, and ONLY immediatly
after going into design view. No help was evident when I looked.

Now I have looked at these and found that both child and master are linked
with the Volunteer Number field.

Thanks for your response. Where do we go from here?
Signature

Norm Shimmel
Butler, PA

> I maybe stating the obvious here, but have you checked the Link Child Fields
> and Link Master Fields properties of your sub form controls?  You don't
[quoted text clipped - 53 lines]
> >
> > My sincere thanks to anyone willing to tackle this problem.
NES - 30 Dec 2007 15:11 GMT
Problem solved!  I apologize for the time you spent on trying to help. The
problem was in the Volunteer Number field I had entered into the Main form
header in order to facilitate a name search.  Once that field was corrected,
all appeared in order.

Thanks very much for you kind offer of help.
Signature

Norm Shimmel
Butler, PA

> I maybe stating the obvious here, but have you checked the Link Child Fields
> and Link Master Fields properties of your sub form controls?  You don't
[quoted text clipped - 53 lines]
> >
> > My sincere thanks to anyone willing to tackle this problem.
Baz - 31 Dec 2007 08:58 GMT
No problem, glad you got it fixed.

> Problem solved!  I apologize for the time you spent on trying to help. The
> problem was in the Volunteer Number field I had entered into the Main form
[quoted text clipped - 79 lines]
>> >
>> > My sincere thanks to anyone willing to tackle this problem.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.