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

Autoincrement is 5150

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

    Autoincrement is 5150

    I have an auto increment field that is numbering 1,10, 100, 101, 102, 103....11, 112, 113, etc. When I create a new record, it's always 00 no matter how many records I create. Packed, compacted, checked the index, the field is set to character w/6 digits. The problem occurs in the default form and browse as well as the form.

    Any ideas why autoincrement is misbehaving?

    kenn
    TYVM :) kenn

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

    #2
    RE: Autoincrement is 5150

    Having same problem.

    --set default to 1 using field rules, but first record is always 0

    Comment


      #3
      RE: Autoincrement is 5150

      --however, I'm importing records into an empty table (versus key entry using forms)

      Comment


        #4
        RE: Autoincrement is 5150

        When viewing the table in the default browse, the lines for each record are about 3 times the height of a record line in other tables.

        I also opened a table that I use as a child table which contains the linking field (Idnumber). when I click ascending or descending on the idnumber field, the records sort the same way as they do in the parent table.

        There is a simple index on the idnumber field so one would think this problem shouldn't exist.

        Thanks,

        kenn
        TYVM :) kenn

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

        Comment


          #5
          RE: Autoincrement is 5150

          I'm wondering if the problem is that the first ID number began with 1 as opposed to 000001. Is ther a way to pad the ID number with the right number of zeros since the id field contains numbers up to 3 digits?

          Thanks,

          kenn
          TYVM :) kenn

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

          Comment


            #6
            RE: Autoincrement is 5150

            Well, that won't wor as I tried to manually enter the zeros in a couple of records. I entered the zeros so id # 1 became id # 000001. However, when saving the record, all the zeros I entered, disappeared. Conclusion, it won't accept an edit.

            Thanks,

            kenn
            TYVM :) kenn

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

            Comment


              #7
              RE: Autoincrement is 5150

              Welllllll, it helps if you change the field rule from autoincrement to character. Changed several numbers and they sort as expected.

              kenn
              TYVM :) kenn

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

              Comment


                #8
                RE: Autoincrement is 5150

                Hasan,

                I would not be using a default field rule AND an autoincrement field rule for the same field. They do different things and might conflict with each other.

                -- tom

                Comment


                  #9
                  RE: Autoincrement is 5150

                  Ken,

                  I don't follow. If a NEW record always has 00 as its last two digits how is the string of numbers you list created in the first place?

                  Using Vers 4 the way to 'start' a numbering pattern was to leave the field User Entered, enter a dummy record manually, and then activate the autoincrement field rule. Is this how you're doing it? If not, are you certain your approach is how it's to be done under Vers 5 ?

                  Also, in Vers 4, I had this experience: My field was Char type, and was 5 chars wide. The 'seed' I planted manually in the first record was '1001'. Notice I only used 4 of the 5 available spaces. The user ran the system for 2 years and finally got to '9999'. Guess which number came next? I was expecting '10000'. WRONG. It went to '0000' and then '0001'. It used only the width I had employed in my seed, not the width of the field in table structure. The solution for me was to build the initial seed with left padded zeros. Instead of '1001', it became '01001'. This seems to have solve the issue. I do not think this problem would occur with numeric type fields. My field was Char type.

                  Hope this helps you unscramble things. -- tom

                  Comment


                    #10
                    RE: Autoincrement is 5150

                    Hi Tom,

                    The field is 6 chars wide. I don't know how things got goofed up as there was data in my clients database from the git go. Why it only wants to do 2 digits, haven't a clue. There are some numbers with 3 digits.

                    If I remove the auto increment from the field rules, I can manually pad with leading zeros. I think your description of your experience is what's going on here. Since there was already data in the id or linking field, I didn't give it a thought. I imagine once you padded the field with another 0, all was well?

                    The is no default field rule for that field, only the auto incrementing. I also checked the field's events, nothing.

                    My client manually padded the id field with zero's last night, sent me the dbf files and I copied them to the app. Still doesn't sort right so going to isolate everything by setting up a new database and use only the tables in question, create a new set and see what happens.

                    Thanks,

                    kenn
                    TYVM :) kenn

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

                    Comment


                      #11
                      RE: Autoincrement is 5150

                      Tom (and Whomever May Have This Problem)

                      I found the cure. I deleted all indexes for the tables and created new indexes. Don't know what happened to them or how it happened but once the indexes for the tables were deleted and new ones created, all is well.

                      Whew!! That's a relief.

                      kenn
                      TYVM :) kenn

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

                      Comment

                      Working...
                      X