Results 1 to 6 of 6
  1. #1
    Synergy.ron@gmail.com is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Location
    washington
    Posts
    126

    Cool cartesian join

    Attachment 43484 I wrote a dbms in Filemaker. the main table is Members. i used a cartesian join between Members and a copy of members for navigation purposes. i,e--the user clicks a members name on the left and some gtrr (go to related record) code shows that members info in the main window. I notice access does not have a cartesian join ability nor does it have a gtrr command.


    question : is there a work around for this??? thanks

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    I notice access does not have a cartesian join ability
    In Access, two tables in a query that are not joined will produce a Cartesian result. Add a third table (not joined) and the result will be exponential.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,424
    nor does it have a gtrr command.
    Not familiar with gtrr but based on what you are saying....

    In access there are a number of ways to do this but the nearest to what you are describing would have a mainform and subform setup with your members (in blue) in an unbound listbox on the main form together with the personal data (aka you have along the top). The transactional data would appear in one or more subforms.

    the equivalent code for gtrr would be in the listbox after update event and would be something like

    Code:
    me.filter="PK=" & mylistboxname
    me.filteron=true
    this assumes that your listbox has a hidden column containing the PK for the member and is identified as such as the bound column

  4. #4
    DittoBird's Avatar
    DittoBird is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2015
    Location
    Newfoundland & Labrador, Canada
    Posts
    59
    Hi Ben,

    gtrr seems to be related to File Maker Pro, from a quick Google (I used FMP back in 1993/4 for less than a year ).

    Why would you need every record in one table joined with every record on a copy of the same table? As Micron has mentioned, a cartesian join of two tables, each with the same number of records, would result in an awful lot of records. For 100 records per table, you'd end up with 10,000 records.

    Is the copy of the Members table a back up?

    You can certainly have the Members table reflected on a form and a button with code that will, what I assume is gtrr, search for first and last name on the Members Copy table and return a query or recordset with the single or multiple matching records in Members Copy. Otherwise, Ajax has mentioned a single primary key which would make things easier to do as he illustrated. If you are using multiple fields as a PK (first, middle, last name - though I have found a fellow in the UK with the exact same combination as I have! :O) then you really don't need a cartesian join.

    All the best,
    --
    Tim

  5. #5
    Synergy.ron@gmail.com is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Location
    washington
    Posts
    126
    (see png pic above) the main form is based on members and so is the portal navigation table. it is 'x' related to show all member records. i uspect that the left 'members' tale should be replaxed with al list control that is populated wit some vba recordset code.....yjanks for the thoughts

  6. #6
    Synergy.ron@gmail.com is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Location
    washington
    Posts
    126
    thanks, this should be interesting.....onward into the light!

    Quote Originally Posted by Ajax View Post
    Not familiar with gtrr but based on what you are saying....

    In access there are a number of ways to do this but the nearest to what you are describing would have a mainform and subform setup with your members (in blue) in an unbound listbox on the main form together with the personal data (aka you have along the top). The transactional data would appear in one or more subforms.

    the equivalent code for gtrr would be in the listbox after update event and would be something like

    Code:
    me.filter="PK=" & mylistboxname
    me.filteron=true
    this assumes that your listbox has a hidden column containing the PK for the member and is identified as such as the bound column

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

Similar Threads

  1. Replies: 3
    Last Post: 01-26-2018, 03:09 PM
  2. Replies: 3
    Last Post: 09-20-2017, 09:50 AM
  3. Replies: 6
    Last Post: 07-13-2015, 06:21 PM
  4. Replies: 6
    Last Post: 11-19-2013, 01:38 AM
  5. Avoiding a cartesian product
    By johnmerlino in forum Queries
    Replies: 0
    Last Post: 10-25-2010, 07:52 AM

Tags for this Thread

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