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

Auto-increment won't work after upgrade to V5

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

    Auto-increment won't work after upgrade to V5

    I just updated my Alpha Five V1 to V5. I keep track of all my CD's. The parent table keeps track of the album info and the child table keeps track of the individual tracks. With my old program I could auto-increment the track # in the form with an imbedded browse. All I would have to do is insert a "1" in the track # field and the rest would follow. I get a "0" in the entry every time. If I set the value after I enter a value I can put one in, but once it's set the only way to change it is to change the field rule to user entered. Is this a step backward or is there a way around this.
    Thanks in advance,
    Frustrated (Peter)

    #2
    RE: Auto-increment won't work after upgrade to V5

    Peter,

    We all get frustrated when there are not automatic ways for us to accomplish our tasks. Your searching the forum on auto increment to try and find a solution is a good thing, however, consistently saying that you are frustrated as you find them ... is not the best way to get assistance.

    I understand what you are looking for, but what you need is not really auto incrementing. As you noted in the auto increment help files, it is designed to ensure for unique values. You are not asking for unique values.

    You can accomplish your task using a lookup table that holds the values 1-20 and select from the list for your specific record to show the track number. You could also write a custom auto increment script/function perhaps using your unique identifier field from your parent table as the beginning portion of the incremented number in the tracks which would then allow your child tables to begin with '1' and end at whatever number the last track for that cd is. You would then subtract the beginning portion of your incremented id in your reports for display purposes.

    These may not be the easiest solutions for you, or even what you want to do, but there are always ways to achieve what you need.

    Maybe others will have other suggestions for your particular situation ... there are many ways to skin a cat.

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

    Comment


      #3
      RE: Auto-increment won't work after upgrade to V5

      Thanks for your suggestions Cheryl. I'm sure there is a workaround. I just think that when the made auto-increment into a unique number generator they weren't thinking of the people who were using it as just an aid to entering data. That was a workaround that I found in A5 V1 and now I find that they have taken that away from me.
      Thanks again,
      Peter.

      Comment


        #4
        RE: Auto-increment won't work after upgrade to V5

        Peter,

        Tom E Cone, Jr has come up with a solution for you. I will need some time to put it together though. This solution will allow you to have your incremented field in the way you were used to in the older version. As soon as I have some instruction available I will attach it to this post.

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

        Comment


          #5
          RE: Auto-increment won't work after upgrade to V5

          Peter,

          I apologize for the delay in getting this information to you. I have had a jam packed day. The solution to your problem is quite simple.

          Using the previous() function in the field rules for your track number field, the track number will automatically be incremented AND you will be able to change the value so that it starts over with number '1'.

          Tom E Cone, Jr created the attached sample db for you. Note the field rules for the track_num field, data entry tab:

          Previous("Track_No")+1

          Open the default browse for the table and enter a new record. The sample has the CD Title taken from the previous() as well, you can change this when you want a new title to test the incrementing and ability to change the increment value for your track number field. I am assuming that the CD title field in your table is automatically populated.

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

          Comment


            #6
            RE: Auto-increment won't work after upgrade to V5

            Thanks so much Cheryl & Tom. I am just getting used to the changes that have occurred over the last 10 years and that saved me a lot of time. I like what I see. Thanks so much for the support, for now I am a lot happier with my new purchase. I'm sure there are quite a few others that are going to appreciate this as well.
            Thanks again,
            Peter.

            Comment


              #7
              RE: Auto-increment won't work after upgrade to V5

              When I switched from V4 to V5 I was very frustrated as well. So many of the things I was doing before had changed.
              I have found however, that the changes are much more dynamic, much more "windows" style based and give me easier solutions - it just took a long time to re-learn

              Keep posting questions, and you will get there.

              Comment


                #8
                RE: Auto-increment won't work after upgrade to V5

                Can't you also do an "if" statement:

                If(previous,"title")="title",(previous,"track")+1,1)

                This would then see that as long as the cd title is the same it would keep adding for you on the track, but when different, it would start at 1?

                Comment


                  #9
                  RE: Auto-increment won't work after upgrade to V5

                  Thanks so much Lynda. That sounds like that would work. The field that I used for linking in my Set was a character field. The first position being an alphabetic character (that I used for a code to break my CD's into categories)followed by 4 digits (used as a serial #). The letter "C" stood for a burned disc, "A" for retail disc, "V" stood for Discs made from Various artists, etc. The problem that I encountered was entering in my burned discs (C) after entering in (V) various discs. The index wouldn't allow me to start my "cut #" at "1", as the last "V" disc's cut # was "16" it would keep changing to "17". I divided my linking field into 2 fields (category & Disc)using "Update" and linked on "Disc". Everything works fine, better than ever actually. I never have to set the cut # back to "1", (See Cheryl's message above 79136 on how)it does it automatically and I can even automatically enter the "Artist" field in the child table from the same field in the parent field. Most of the keying in the child table is done automatically. You are right. Everyday I learn things that make my new purchase well worth the money. Things that I spent hours figuring out with the old program are just a "click" on a drop down list. Awesome!

                  Comment

                  Working...
                  X