Results 1 to 2 of 2
  1. #1
    mjhopler is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    26

    Building Forms Right

    Testdatabase.zipI have a database with loan data. In the primary table, the data is stored on the loan level (one record per loan). However, a certain borrower may have multiple loans (our one-to-many). I have built a form two ways and think the form with the subform is the right way; however, seems weird I need a subform when all data is coming from the same table.

    A few issues:

    1. In my form with a subform, when I change the officer name and customer name, it changes data in the TableWithData. No clue why this is happing, but the customer name of the first record selected changes to be the account number. If this is the right form to use, please help me figure out why it is changing CustomerName and stop it.
    2. If it is better to use the one form, then I run into a couple problems:
      1. I am using an unbound field to select the customer name and want the records for each loan to appear below. I cannot get the unbound field to work unless I bring in the primary key for the table which is account number. By doing this, I only can show one account at a time.
      2. Second, even if I do get it to show all records continuous, down the road I do have other one-to-may relationships where I will need to bring in a subform. I believe this would not allow me to show the accounts in the continuous manner.


    Thanks for the help. Note, I am not an expert in access. Please dumb down the answers as much as possible.

    I have attached a sample database and I use Access 2010.

    Thank you!!!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    In form/subform arrangement, both forms should not have the same data source.

    Take the example of a purchase order and purchase order details.

    Main form would be bound to Orders table and subform bound to OrderDetails table. The Master/Child links of the subform container control would synchronize the related records.

    In your case, assuming a loan can have only one borrower, main form would be bound to borrower table (ID, name, address, phone) and subform bound to loans table (borrowerID, loanNum, loanDate, amount, etc). An alternative is a single form bound to loans table with a combobox to select borrower from a list.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Building relationships
    By Tlattimer in forum Database Design
    Replies: 1
    Last Post: 07-15-2013, 11:12 AM
  2. Help with building forms
    By DariusD in forum Access
    Replies: 23
    Last Post: 12-29-2012, 10:47 PM
  3. Replies: 4
    Last Post: 07-13-2012, 01:41 PM
  4. Building a FAQ
    By Karin in forum Access
    Replies: 5
    Last Post: 03-07-2011, 11:26 AM
  5. Building
    By jlech1805 in forum Access
    Replies: 1
    Last Post: 11-17-2010, 12:10 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