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 Programming / May 2007

Tip: Looking for answers? Try searching our database.

Adding new record problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Larry - 15 May 2007 17:45 GMT
Scenario:    When adding a donor to DonorMaster table the table is updated; also
during this function I want to load, to each of the sub tables, the donor
number and the reference number. I do this by having setup a relationship
between tables (See below). Control Source for the Add Form is an embedded
query and identifying each Recovery_ID Field. The ID’s are than loaded using
VB coding Subtable_recovery_ID = DonorMaser_ID.
    Works until I hit the following 2 conditions:

Condition 1:
DonorMaster        DonorNumber        Primary Key
            Recovery ID       
            Additional Fields

SubTable1        ST1_DonorNumber    Primary Key
            ST1_Recovery_ID
            Additional Fields
Tables 2-29
SubTable30        ST30_DonorNumber    Key
            ST30_Recovery_ID
            Additional Fields

Relationship between DonorMaster and SubTables  
1.    1 to 1 relationship based on Donor Number
2.    Enforce referential Integrity
3.    Cascade Update
4.    Cascade Delete

Problem 1: Creating  relationship on any table over number 27, get message
         “Too many indexes on DonorMaster.”  

Question: Is there a way around this?

Condition 2:
Using embedded query has the potential to bring in huge amounts of unwanted
data.
I only want to place an empty record, except for donornumber and
recovery_id, in these  tables.

Question: Can this be done?

Last Question:  Should I rethink the design?
Klatuu - 15 May 2007 18:56 GMT
Why 29 identical tables?
I suspect your database design needs some rethinking.
Signature

Dave Hargis, Microsoft Access MVP

> Scenario:    When adding a donor to DonorMaster table the table is updated; also
> during this function I want to load, to each of the sub tables, the donor
[quoted text clipped - 37 lines]
>
> Last Question:  Should I rethink the design?
Larry - 15 May 2007 20:03 GMT
Tables not identical, different medical procedures and related information to
those procedures. The two fields mentioned are the keys that associate each
of the tables.
In all there are 765 fields in these tables.

> Why 29 identical tables?
> I suspect your database design needs some rethinking.
[quoted text clipped - 40 lines]
> >
> > Last Question:  Should I rethink the design?
Klatuu - 15 May 2007 21:08 GMT
Okay, but it should not be necessary to create a table for each procedure.  I
believe if you reevalute you design, you can find a way to have only one
table.  Not having had any experience in medical systems, I can't offer any
specific advice, but I doubt this is actually necessary.
Signature

Dave Hargis, Microsoft Access MVP

> Tables not identical, different medical procedures and related information to
> those procedures. The two fields mentioned are the keys that associate each
[quoted text clipped - 45 lines]
> > >
> > > Last Question:  Should I rethink the design?
Larry - 16 May 2007 12:25 GMT
Dave,

Spent yesterday afternoon convincing boss, and others, we needed achange in
the design. We came a a decision that there would be three tables, Base data,
Recovery Table and a Processing Table. This way we can still maintain
security as to who has access to which table.
Thank you for your advice, it was helpful in changing some people's minds.

> Okay, but it should not be necessary to create a table for each procedure.  I
> believe if you reevalute you design, you can find a way to have only one
[quoted text clipped - 50 lines]
> > > >
> > > > Last Question:  Should I rethink the design?
Klatuu - 16 May 2007 13:17 GMT
Good. glad to hear it.
Signature

Dave Hargis, Microsoft Access MVP

> Dave,
>
[quoted text clipped - 58 lines]
> > > > >
> > > > > Last Question:  Should I rethink the design?
 
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.