Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Parent key and Child key

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Parent key and Child key

    Evaluating V6. Currently reading "Linking Tables in a Set" - 6 pages of A4.

    Where it reads " The Invoice and Customer tables are related through the Customer_No field, which is referred to as the linking field."

    When I came to trying this out in practice, on the screen I see references to Parent "key" and Child "key" but no mention of "linking field".

    Nevertheless am I in the right place when it comes to linking tables. It is just the sudden departure from the word "field" to "key" that made me wonder if I am on the right track in all this.

    Many thanks for your assistance.

    By the way just as an aside from the above. Is there any way please of fields in one table INHERITING values from another field in a different table, without using LOOKUPS. I did try searching for "inheriting values" but came across nothing.

    I was imagining that if for example I keyed in say a Customer_ID number in one table and that table was linked to another one elsewhere which had an autoincremented value (via that Customer_ID key)which was the same, then fields with say duplicate names for example such as "First_name" or "Last_Name" would INHERIT these values from the referred to table automatically and be displayed on the screen.

    I am probably getting myself (and you)confused unecessarily. Also I hoped I spelled that "un..." correctly!!

    Thanks.
    David
    (19 days left for evaluation and counting.....!)


    #2
    RE: Parent key and Child key

    David,

    Linking field and parent key/child key are one in the same. I believe you see 'keys' in the sets and linking fields in the field rules. Both require a similar field in each table in order for the two to work together.

    As far as your lookup question, I do not know how to do what you are asking. However, is there a particular reason why you do not want to use a table lookup? That would be the easiest way that I can think of to accomplish your task.

    Good luck
    Cheryl
    Cheryl
    #1 Designs By Pagecrazy
    http://pagecrazy.com/

    Comment


      #3
      RE: Parent key and Child key

      Ya lost me..... Set" - 6 pages of A4.... A4 is the DOS version.

      Yes, that can be a bit confusing but it's really easy. The Parent and Child table must have the same linking field. Make sure there is a field in each table with the same format. The names can be different and you could use an expression but to keep it simple, I use identical fields.

      .....By the way just as an aside from the above. Is there any way please of fields in one table INHERITING values from another field in a different table, without using LOOKUPS. I did try searching for "inheriting values" but came across nothing.....

      Yes, depending on how many you want, the link will do that but I wouldn't use a lint to fill in several fields.

      .....I was imagining that if for example I keyed in say a Customer_ID number in one table and that table was linked to another one elsewhere which had an autoincremented value (via that Customer_ID key)which was the same, then fields with say duplicate names for example such as "First_name" or "Last_Name" would INHERIT these values from the referred to table automatically and be displayed on the screen.....

      Why are you adverse to why you don't want to use a lookup, either in the field rules or via the lookup function?


      kenn
      TYVM :) kenn

      Knowing what you can achieve will not become reality until you imagine and explore.

      Comment


        #4
        RE: Parent key and Child key

        Thanks both Cheryl and Kenn

        To you first Kenn. That reference to A4 was to the A4 pages I printed off to study the article "Linking Tables in a Set". Sorry I confused you about that.

        To you both - I am not averse to using Lookups (which I still need to understand more about of course) - it just seemed a quicker route actually to me, if the computer did such a thing automatically.

        However I obviously still do not understand how to do this Kenn because I tried linking the tables, thinking that this would display what I required but it didn't. I think it is like Cheryl mentioned I need to attend to the field rules too.

        I will get there eventually - and thanks again to you both.
        ----David

        Comment


          #5
          RE: Parent key and Child key

          "When I came to trying this out in practice, on the screen I see references to Parent "key" and Child "key" but no mention of "linking field". " - tables are combined into sets by defining the linking field. Records in the child are related to records in the parent by matching linking field "key" values. This term is derived from the fact that linking fields must be indexed, either explicitly by you or implicitly by Alpha, and index values are referred to as keys.
          There can be only one.

          Comment


            #6
            RE: Parent key and Child key

            David,

            Simply 'linking' tables together will not give you automatic field population. If this were the case we would all be insane. There are lots of different reasons to link tables together besides populating similar fields.

            The easiest way for you to accomplish your data being populated would be, in my opinion, to use the field rules for your linking field and set a table lookup. More information can be found at:

            Using Field Rules for Table Lookups

            Creating a Table Lookup

            Comparing Drop-down Lists and Popup Dialogs

            Displaying Selected Lookup Table Records (Filtered Lookups)

            Hope this helps. Good luck.
            Cheryl
            Cheryl
            #1 Designs By Pagecrazy
            http://pagecrazy.com/

            Comment


              #7
              RE: Parent key and Child key

              Thank you Stan - it is beginning to make much more sense to me as I read these postings. Your further clarification helped me quite a lot. I stopped and read and re-read it and gradually I believe this is getting through to me. Whereas at the start of the evening I was losing the plot!

              Cheryl many thanks for your links to various information.
              I have just printed everything off you referred me to and will now go into much detail trying to absorb this data.

              Kind regards to you all and everything is much appreciated. Thanks for your time.
              ----David

              Comment

              Working...
              X