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

Linking record to anothe table or lookup

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

    Linking record to anothe table or lookup

    This concept is eluding me, maybe someone can educate me

    I have a database of events.
    Now I wish to put the events into categories.
    I want the categories from a set list.

    I did it this way to start
    I made a category table, and made a list of categories
    In my events table, I made a field for category

    then in field rules, I set a lookup to the category table!

    This works well.
    I can pick the categories and they are populated into the category field of the events table.


    BUT its not exactly what I want... why?

    Because if I have a category in the category table that is say "frogs"
    I decide it should say "hopping frogs"
    I can make that change

    Now in my events table, all the previous categories are still "frogs"
    This is because, I just used the second table as a source to populate the events table!

    What I would like! Is to point to the category!
    So If I change it, it changes it for all records!

    Problem is, stupid me cannot figure out how to do it!
    I am kicking myself, because I am guess this is something very basic and just eluding my mind! Maybe more caffeine will help>>>

    #2
    Re: Linking record to anothe table or lookup

    changing the category in one table will not change the category in all the other tablesthat were originally filled in.

    You can use operations and field update to change enmass.

    You have to choose the table and then the field, filter on the ones with named frogs, then update to jumping frogs. If you are only doing a couple tables one time, this should be sufficient.

    More elaborate ways would be in sbasic and very involved.
    Dave Mason
    [email protected]
    Skype is dave.mason46

    Comment


      #3
      Re: Linking record to anothe table or lookup

      thats not exactly what I want to do.

      what I really want is a way to point from one table to another.
      I have attached a little picture to illustrate

      The idea being. you assign categories to the main table
      but they can be changed or edited if needed.

      I am pretty sure this can be done
      but dont knwo how.

      I know how to do it in excel!
      for all thats worth! HA

      Comment


        #4
        Re: Linking record to anothe table or lookup

        You could try previous values for your lookup. And if you find you want to change one, you can do a quick filter to display the wrong values and change each one. Which is only good if there are a few!

        Or... Your categories table which is static could have an ID field and a DESC field. Then in the Events table link to the ID and display the DESC as a link or as a calc using the lookupc() function. Now all you need do is change the static DESC in categories and keep the ID to see the change.
        Robin

        Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

        Comment


          #5
          Re: Linking record to anothe table or lookup

          yes, but you still cannot change them later!
          if you want the category for frog to change to frogger, you would have to find each record and change them

          easy for me to do

          totally impossible for my users

          Comment


            #6
            Re: Linking record to anothe table or lookup

            Originally posted by coop9653 View Post
            yes, but you still cannot change them later!
            if you want the category for frog to change to frogger, you would have to find each record and change them

            easy for me to do

            totally impossible for my users
            Have your lookup fill two fields, the category and a category id (only one need to be visible). Create a post operation to post the category to the other table based on same category id's. Give the users access to a button which runs the post operation.

            If they decide to change a category they can post the change to all records.

            The lookup is intended to aid in data entry.
            There can be only one.

            Comment


              #7
              Re: Linking record to anothe table or lookup

              Why can't you give the users the option to change the type descriptions with a little pop up form?

              Add a new field to Events and Category called Cat_ID.

              Update the Category->Cat_ID field to populate it with a series.

              Now use a post operation to populate the new field for the ID field you added to Events by matching it to the existing Category field.

              Make the Category->Cat ID field rule auto increment and set the default value to the next value in the series.

              Change the field rule in Events to lookup Category based on ID but don't display it in the lookup and fill the ID field.

              Then in the future, offer the pop up form for the user to edit the Categories without showing them the ID field. You can even let them add new ones.

              I did this for a form that has 20 checkboxes to fill in for which 15 have been defined and the other 5 left blank for "futures". The checkbox list is static and I display it in an embedded browse on the form with the blanks initially hidden and where the filled in values already set cannot be changed. There is a lot you can do with this idea. If any of the blanks are filled in they automatically appear in the other form which references their description using lookupc().
              Last edited by MoGrace; 04-10-2008, 01:56 PM.
              Robin

              Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

              Comment


                #8
                Re: Linking record to anothe table or lookup

                ok,
                lets try this

                in your categories, you need two fields. catid and category.

                in your main table, you only need the catid field. Connect category to your main table by the id field in a set. you can still do a lookup on the category, but the field filled will be catid only. That way you have access to your category and any changes in the category field will be instantaineously there for all reords with that catid. You can then use in forms/letters/reports/etc.

                Just rember to make the field show "category" view only to keep someone from typing into it on a form or browse. They would change that definition for all records prior, present and future.
                Dave Mason
                [email protected]
                Skype is dave.mason46

                Comment


                  #9
                  Re: Linking record to anothe table or lookup

                  sorry Robin,

                  I didn't see your post.
                  Dave Mason
                  [email protected]
                  Skype is dave.mason46

                  Comment


                    #10
                    Re: Linking record to anothe table or lookup

                    that very well may work!!

                    But what about making a set?
                    I finally figured out how to do that
                    but I cannot seem to make changes to my categories from the set

                    sets seem to be a bit confusing.

                    But should they not do the same thing?

                    Comment


                      #11
                      Re: Linking record to anothe table or lookup

                      Originally posted by DaveM View Post
                      sorry Robin,

                      I didn't see your post.
                      Great minds think alike...
                      Robin

                      Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                      Comment


                        #12
                        Re: Linking record to anothe table or lookup

                        main table to start
                        connect the categories table to the main set on a one to one by catid in both tables

                        If you have forms in the main table, you can "copy to" the set which would let you better use the category table.

                        kinda why we use sets.
                        Dave Mason
                        [email protected]
                        Skype is dave.mason46

                        Comment


                          #13
                          Re: Linking record to anothe table or lookup

                          that my be where I am making my mistake with the set
                          I am linking them on the category field

                          I need to make a seperate linking field that does nothign but link!

                          Now I have 2 cool ways to tackle this

                          thanks

                          Comment


                            #14
                            Re: Linking record to anothe table or lookup

                            I am sure either will work very well. It may even be possible to combine a bit.
                            Dave Mason
                            [email protected]
                            Skype is dave.mason46

                            Comment


                              #15
                              Re: Linking record to anothe table or lookup

                              You all our excellent help

                              So far I have the thing working marvelously
                              using the lookup method
                              I have not managed to get sets to work right!

                              anyway, I now have the strangest behavior
                              If you open the task form
                              and then look at the category column
                              you can pick categories

                              NOW try this, make new record
                              enter anything
                              close and save it

                              now find that just created category
                              and select it

                              it brings up the new category form again

                              WHY?
                              who OH why?


                              ps.... if anyone can make the set in the tables go away let me know how
                              I cannot delete it!

                              Comment

                              Working...
                              X