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

Importing data an auto-increment field

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

    #46
    Re: Importing data an auto-increment field

    C, I guess the language differences may present insurmountable barriers. If you look at post #18 in this message board thread you will see two questions (a) and (b). Neither have been answered. If you can't find post #18, or if you don't understand the questions, let us know.

    Comment


      #47
      Re: Importing data an auto-increment field

      Not to butt in, but you could create a dummy record with the value of 0 or "0" and then your append should increment beginning with 1. You can delete the dummy record later.
      Robin

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

      Comment


        #48
        Re: Importing data an auto-increment field

        Originally posted by Tom Cone Jr View Post
        C, I guess the language differences may present insurmountable barriers. If you look at post #18 in this message board thread you will see two questions (a) and (b). Neither have been answered. If you can't find post #18, or if you don't understand the questions, let us know.

        Hi dear Tom,

        definitely my English must be bad if until now I have not been able to tell you what I have to do, and I think that I've already explained what are the intentions for this my app. In fact, as I said in my post # 25 of the message board, I told that I would have implemented the solution proposed by Ray. So, by replying to what is required in your post # 18 in this message board, the answer is that I have to implement the solution a), but I have to use a field auto-incremented to assign the invoice number that I want to print.

        For your question b) I suppose that if I link the two tables with a common field (ORDERID) might work. The first table automatically generates the invoice number and the related field (ORDERID) is the field that link the second table with the details of the orders
        Cristiano
        [email protected]

        Skype: cris-do

        Comment


          #49
          Re: Importing data an auto-increment field

          Originally posted by Cristiano View Post
          Ok Ray, now I'm not at work , tonight i send to you the table from excel
          Thank you

          Hi Ray,

          I'm sorry for .rar file I use this for to compress files. Now in attach you can find a zip file

          Sorry again
          Attached Files
          Cristiano
          [email protected]

          Skype: cris-do

          Comment


            #50
            Re: Importing data an auto-increment field

            If you already have a ai in place with records in the table, you would have to remove the ai designation in field rules(also the index for the field that is unique, then use an operation to increment all the table records by 1. That would make your 0 be 1 and your 1 become 2, etc.
            Dave Mason
            [email protected]
            Skype is dave.mason46

            Comment


              #51
              Re: Importing data an auto-increment field

              Originally posted by DaveM View Post
              If you already have a ai in place with records in the table, you would have to remove the ai designation in field rules(also the index for the field that is unique, then use an operation to increment all the table records by 1. That would make your 0 be 1 and your 1 become 2, etc.

              Hi Dave,

              Sorry but I do not understand ... My mistake I think was when I tried to update the table tbl_Header_invoice from the Temporary table.

              How can I then update a table trying to keep or make the file counter to start in the correct way?
              Cristiano
              [email protected]

              Skype: cris-do

              Comment


                #52
                Re: Importing data an auto-increment field

                I will see if I have some free time to make you a video of the process?? I will zip it an place it here or give a download address for it.
                Dave Mason
                [email protected]
                Skype is dave.mason46

                Comment


                  #53
                  Re: Importing data an auto-increment field

                  Originally posted by DaveM View Post
                  I will see if I have some free time to make you a video of the process?? I will zip it an place it here or give a download address for it.

                  Thanks Dave,

                  you can send a mail, in signature there is my email account. Perhaps is the best thing
                  Cristiano
                  [email protected]

                  Skype: cris-do

                  Comment


                    #54
                    Re: Importing data an auto-increment field

                    Cristiano,
                    I know you didn't reply to my post, but if you are trying to append records to an empty table, the default field rule will not be invoked because it is for direct user entry. Therefore, setting the first record in the table with a default value of 0 first, can then be incremented by the append operation because it is now an indexed value.
                    Robin

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

                    Comment


                      #55
                      Re: Importing data an auto-increment field

                      Originally posted by MoGrace View Post
                      Cristiano,
                      I know you didn't reply to my post, but if you are trying to append records to an empty table, the default field rule will not be invoked because it is for direct user entry. Therefore, setting the first record in the table with a default value of 0 first, can then be incremented by the append operation because it is now an indexed value.
                      Hi,

                      and sorry if I have not yet responded, in effect this is exactly was what I was thinking, to make an empty record ,but how do I create an empty record on a table that is auto-increment?
                      Cristiano
                      [email protected]

                      Skype: cris-do

                      Comment


                        #56
                        Re: Importing data an auto-increment field

                        C,
                        On the tab "Field types" you have checked the button auto-increment, go back there.
                        Select the next tab "Data Entry" set default mode to "simple default expression" and the number to whatever first number you wish.
                        If numbering has started then this number you choose must be at least higher than the last used.

                        Comment


                          #57
                          Re: Importing data an auto-increment field

                          Originally posted by Ray in Capetown View Post
                          C,
                          On the tab "Field types" you have checked the button auto-increment, go back there.
                          Select the next tab "Data Entry" set default mode to "simple default expression" and the number to whatever first number you wish.
                          If numbering has started then this number you choose must be at least higher than the last used.
                          Hi Ray ,

                          I'm sorry but in the table hat I sent to you ( Tbl_Temp_Orders) There is no set field that way.
                          Cristiano
                          [email protected]

                          Skype: cris-do

                          Comment


                            #58
                            Re: Importing data an auto-increment field

                            I'm sorry but in the table hat I sent to you ( Tbl_Temp_Orders) There is no set field that way.
                            1. Of course there isn't, tbl_tmp_orders doesn't have an autoincrement does it -you are asking about your increment starting number, look wherever that is
                            2. I dont have tbl_tmp_orders.dbf did you send it? I see post 49 Ok missed that I was watching my email notifications must have skipped that

                            Comment


                              #59
                              Re: Importing data an auto-increment field

                              Not an empty record but a dummy record, that is one that only contains default values.
                              Robin

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

                              Comment


                                #60
                                Re: Importing data an auto-increment field

                                Originally posted by MoGrace View Post
                                Not an empty record but a dummy record, that is one that only contains default values.
                                What does a record dummy? I've never created a how?
                                I have to do in the table with the field that should be auto-incremented ?
                                Cristiano
                                [email protected]

                                Skype: cris-do

                                Comment

                                Working...
                                X