Page 3 of 3 FirstFirst 123
Results 31 to 41 of 41
  1. #31
    PeterB is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2020
    Posts
    22

    Thanks mike60smart,
    I see what you've done there & I appreciate your input.
    Using your database, how do I get the Market Form update the same Customer & Company?
    Using your DB as is, when I select the 'Page 12' Tab (frm_Market) & try to add info, I get #Name? populated in various fields.
    I've tried using the =[frmCustomers].[Form]![CustomerID] as the source for a new TextBox on the Frm_Market form but I'm still getting errors.
    I need the Customer ID & Company ID to sync across all pages.
    Thanks again Peter

  2. #32
    PeterB is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2020
    Posts
    22
    Thanks accesstos,
    I'd rather keep this all in one post, I think the best starting point is the relationships between the tables.
    The database will be used to control meetings with Customers and there are several companies that a Customer may use.
    It also will calculate a billing rate that is different for each Company.
    I've attached the ERD. Thanks
    Attached Thumbnails Attached Thumbnails ERD2.JPG  

  3. #33
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by PeterB View Post
    Thanks for help June7, but each of your posts just criticises stuff I don't know about, This is why I am on a Forum asking questions. I have given this a really good try & I'm looking for help.
    If you can't point out the problems & have a fix in mind to step me through, then let me know, otherwise, I'll persist on the internet, or give up ...
    I don't think June7 was criticizing. Those were the same questions I would have asked.
    I don't know how much experience you have is dB design, but it seems (to me) you do not have much experience (yet).

    Since you asked to have problems pointed out, I'm going to. But please do not get offended - my comments are meant to help you.

    Do you know anything about "The Normal Forms" with regards to database table design?
    What about Normalization?
    Here are some links for you to read:

    The Normal Forms
    =========================
    The Normal Forms: Introduction
    The Normal Forms: First Normal Form (1NF)
    The Normal Forms: Second Normal Form (2NF)
    The Normal Forms: Third Normal Form (3NF)
    The Normal Forms: In a Nutshell


    What is Normalization?
    =======================
    What Is Normalization, Part I: Why Normalization?
    What Is Normalization, Part II: Break it up.
    What Is Normalization: Part III: Putting It Back Together
    What is Normalization: Part IV: More Relationships
    What Is Normalization: Part V: Many-to-Many Relationships


    Here is your original design
    Click image for larger version. 

Name:	Tabbed_db.png 
Views:	19 
Size:	124.6 KB 
ID:	42263

    Here is your second design
    Click image for larger version. 

Name:	Tabbed_db_1.png 
Views:	19 
Size:	152.1 KB 
ID:	42264
    Better, but still has problems.

    My changes to your design
    Click image for larger version. 

Name:	Tabbed_db_2.png 
Views:	19 
Size:	122.9 KB 
ID:	42265


    Setting up a tabbed control is easy, but what you envision happening is complicated.
    I like have the "main data" (customers) in the main form.
    Linking the customer PK to the Billing sub form is easy. Linking the Billing sub form to the Payment sub form and the Marketing dub form is a lot harder.


    The first step is to get the "CustomerID_PK" liked to the "CustomerID_FK in the Billing sub form. Easy....
    Now you must get the value from the BillingID_PK and connect it to the BillingID_FK on the Payment sub form.
    Once that is worked out, it is easy to use the same method to link to the Marketing sub form.

    You know about the linking fields Master Field and the Child Field to keep the data displaying the proper records?

    If you see any controls that have a yellow background, that is what I use to denote hidden fields. (PK and FK fields should not be seen on forms).

    So tear into the db "Tabbed_db_2". I hope this will help you move forward on your project. Any questions, be sure and ask..
    Attached Files Attached Files

  4. #34
    PeterB is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2020
    Posts
    22
    Hi ssanfu,
    Thanks SOOOO much for this, I've found that connecting a 3rd & 4th subform seems to be an issue with most tutorials.
    I am familiar with normal forms but I added fields in Payments & Marketing in an effort to help me join the subforms to the other forms.
    One question though, I can't see the Customer Name, DoB, & Age in the Form Header of frm_main, just the headings?
    I'll study what you have done & come back to if I may.
    Thanks again. Peter

  5. #35
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by PeterB View Post
    One question though, I can't see the Customer Name, DoB, & Age in the Form Header of frm_main, just the headings?
    I prefer overlapping windows. And I have dual 27" monitors. Maybe you have a smaller monitor. You might try making the main form longer.



    Quote Originally Posted by PeterB View Post
    I've found that connecting a 3rd & 4th subform seems to be an issue with most tutorials.
    I am familiar with normal forms but I added fields in Payments & Marketing in an effort to help me join the subforms to the other forms.
    It all depends on the tables and relationships.
    Customers table is linked (1-to-many) with Billings. This is easy to set up as Main form and Sub form. But Billing is (1-to-many) with table Payments AND (1-to-many) with table Marketing.
    So you could have frmPayments as a sub sub form on form Billings and form Marketing as a sub sub form also on form Billing. But things get really crowded on the form.

    I created an ALTernate set of forms as a demo. (attached below)
    frm_Main is a main form with 3 sub forms

    frm_main_ALT is a main form with a sub form. That sub form has 2 sub sub forms. Compare the linking fields between the two main forms.
    Attached Files Attached Files

  6. #36
    PeterB is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2020
    Posts
    22
    Thanks Steve,
    This is great although I'm getting a VBA error when I double click on the Last Name field to add a new Customer?
    Just tried it again & it's all good! Disregard this post please.
    Thanks

  7. #37
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    OK...

    Remember this is only a demo and the way I *might* handle this dB. I don't know the requirements.

    And I am still not sure about some of the fields. Why is there a salary field in table Payments?

    Enjoy....

  8. #38
    PeterB is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2020
    Posts
    22
    Thanks again, some fields still need to be rearranged, I was mostly concerned with it working correctly first up.
    Peter

  9. #39
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Sounds good. Post back or PM me if you have more questions about what I did.


    Good luck with your project.

  10. #40
    PeterB is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2020
    Posts
    22
    Hi Steve,
    I'm just doing some testing and I noticed that If I add a new record for an exisitng Customer on the Billing, Market & Payments tab, they don't seem to be linked to the same Company & Customer? I'm getting the Table pop up asking me which table to select for Parent/Chilid relationships?
    Are you able to add some records to Version 3 & let me know what I should choose?
    Thanks Peter

  11. #41
    PeterB is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2020
    Posts
    22
    Hi Again Steve,
    I'm going to add a new post called "Rearranging Tabbed Forms" base on this last DB.
    It would be great if you had an opinion.
    Peter

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Creating a multi variable Search Form
    By AccessUser12345 in forum Forms
    Replies: 3
    Last Post: 10-14-2016, 01:36 PM
  2. Creating database for Multi User
    By zahin in forum Database Design
    Replies: 3
    Last Post: 07-05-2014, 11:21 AM
  3. Replies: 2
    Last Post: 01-26-2013, 11:38 PM
  4. Replies: 3
    Last Post: 10-31-2012, 05:04 PM
  5. Problem creating Multi level list boxes - pleas help!
    By AccessConfused in forum Access
    Replies: 6
    Last Post: 10-24-2010, 09:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums