Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Coupling two tables in Access and setting as subform source

Posted on 2008-10-14
3
Medium Priority
?
360 Views
Last Modified: 2012-05-05
OK this might be an easy answer, but I'm still learning on Access.  I have Access 2003 database with a main form with a source table (we'll call TABLE 1).  Contained within this main form is a subform with a separate table source (TABLE 2).  I have reached the 255 max number of entries in TABLE 2, but I still need to add more fields to this table as well as on the subform.  The only thing I could think of is to somehow create another table with these additional items and somehow couple it to TABLE 2.  But since the subform can only link to one table, I wasn't sure how to accomplish this.  Thoughts?
0
Comment
Question by:janderscu
3 Comments
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 22713992
Hello janderscu,

With respect, why so many fields?  Having more than a few dozen fields is usually a sign of suboptimal
design...

Regards,

Patrick
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 500 total points
ID: 22714005
255 fields in any one table is somewhat excessive.

However, you can create a 2nd table - same structure - same primary key ... and create a One To One relationship between the two tables.

Then, for the subform Recordsource, create a query which joins the two tables together via the Primary Key field.

mx
0
 

Author Comment

by:janderscu
ID: 22714056
We are collecting patient physical exam measures and that is just what we need to collect, but DatabaseMX has a great idea to split it up and set the query as the form source.  I will go that route.  Thanks.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question