Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    Bschmale is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    20
    Quote Originally Posted by June7 View Post
    If CustomerFinancials will have only one record for each CustomerID and there will always be a record for each CustomerID, could just merge the two tables.
    June, I combined the two tables and I set primary keys which took care of my join error!

    I have also started learning about subforms, which leads me to my next question.

    I have a table that has multiple "areas" for each customer. The table is as follows:

    DID CustomerID Area Volume Revenue RevDivVol
    1 1 Area1 100 101 .99
    2 2 Area2 200 201 .99
    3 2 Area3 300 301 .99
    4 2 Area1 400 401 .99
    5 3 Area2 500 501 .99
    6 3 Area3 600 601 .99
    7 4 Area2 700 701 .99
    8 4 Area3 800 801 .99
    9 5 Area2 900 901 .99

    The DID is basically an arbitrary autonumber that I created as a primary key. My goal is to have a form (subform) which will display all of the records for each company ID. When I try to make a form it displays these as individual based on row. Is there a way to group them together?

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    I don't see company ID in that data sample. How do these records relate to company? Is that the CustomerID?

    Did you set the Master/Child Links properties of subform container?
    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.

  3. #18
    Bschmale is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    20
    Quote Originally Posted by June7 View Post
    I don't see company ID in that data sample. How do these records relate to company? Is that the CustomerID?

    Did you set the Master/Child Links properties of subform container?

    The customerID is the foreign key. I connected the master/child properties but I am still getting the problem where my subform only shows one of the records for that company. I suspect it is an issue with the way that I have the subform set up. Is there a keyword for this kind of issue that I should be looking for online?

  4. #19
    Bschmale is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    20
    Another Question I had was whether or not it is possible to have a drop down box that selects a subform? In other words, is there away to have subforms on a main form that are invisible until selected from a drop down box?

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    What is the subform RecordSource? Does it refer to table or query object or is it an SQL statement? If you want to provide db for analysis, follow instructions at bottom of my post.

    Yes, code behind combobox can manage visibility of subform containers. Could also have subforms on pages of a Tab control.
    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.

  6. #21
    Bschmale is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    20
    June attached is my db. I will look into using tabs to select subforms.

    Let me know if you need clarification of my issue. Basically my form is only showing one of the records associated with the customer id.DBHelp.zip

  7. #22
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Should give fields better name than 'ID'.

    CompanyTicker field should not be in Historical table, only the CompanyID.

    The subforms are set for Single View. Change to Continuous or Datasheet if you want to see multiple records at once.
    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.

  8. #23
    Bschmale is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    20
    Quote Originally Posted by June7 View Post
    Should give fields better name than 'ID'.

    CompanyTicker field should not be in Historical table, only the CompanyID.

    The subforms are set for Single View. Change to Continuous or Datasheet if you want to see multiple records at once.
    I will change the ID fields to something better. CompanyTicker is functioning as the primary for that field at the moment and Company ID is the foreign key.

    I will look into continuous view as well as try to set up tabs for my different subforms.

  9. #24
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    That won't work.

    The PK in CustomerInformation is autonumber CompanyID. This value should be saved as foreign key in Historical.

    If you make CompanyTicker a PK in Historical then there can be only one record for each company. This means a 1-to-1 relationship with CustomerInformation. There is no need for both CompanyTicker and CompanyID in Historical. CompanyID can be the foreign key as well as primary key in a 1-to-1 relationship.

    The Historical table is not a normalized structure. Will have to modify table, queries, forms, reports every year. Might as well combine the two tables into one.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help with Error: Join Expression Not Supported
    By gammaman in forum Queries
    Replies: 1
    Last Post: 07-30-2013, 02:08 PM
  2. JOIN expression not supported
    By seageath in forum Access
    Replies: 2
    Last Post: 12-05-2011, 08:41 PM
  3. "Join expression not supported"?
    By jsoldi in forum Queries
    Replies: 1
    Last Post: 08-29-2011, 01:21 PM
  4. Join Expression not Supported
    By amegahed3 in forum Queries
    Replies: 6
    Last Post: 09-29-2010, 01:28 PM
  5. Join Expression Not Supported
    By ubsman in forum Queries
    Replies: 3
    Last Post: 04-30-2009, 08:36 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