Solved

Coupling two tables in Access and setting as subform source

Posted on 2008-10-14
3
341 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 92

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 - Access MVP) earned 125 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now