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

Data value cannot fit into numeric field of size

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

    Data value cannot fit into numeric field of size

    I am at my wits end with Alpha Five! After using A5 for 2 years with this database, A5 now decides that I have an error on the opening form which

    1) displays "Data value cannot fit into numeric field of size" (an error message worthy of Microsoft's "An error has occurred ..." helpfulness).
    2) attempts to ESC or cancel the save yield an equally non-helpful error message: "Enter must begin first".

    I have data entry mode set for modeless and am using the latest patch. I am running Vista 64-bit, but the same error occurs in Win XP. The only way to exit the screen is to stop A5 from the Task manager.

    I have compacted the database, which reports success with no errors. I have rebuilt the form and simplified it.

    I am frustrated enough with Alpha Five's erratic and capricious behavior that I am in the process of re-writing all this code in Access. At least there, what works today will work tomorrow.

    Attached is the file. I am trying to use the form frmInitial.

    Any help in debugging this would be GREATLY appreciated.

    Dave
    David A. Volgas, MD

    #2
    Re: Data value cannot fit into numeric field of size

    I'm sorry, I am concentrating on the frmInitial ... thought the tabbed form on frmMain might be contributing to the problem because it's using a set. frmInitial uses only the demogrpahics table.

    Dave



    p.s. I still love A5 for MANY reasons, but I do get VERY frustrated with the fact that it "breaks" periodically for no apparent reason.
    David A. Volgas, MD

    Comment


      #3
      Re: Data value cannot fit into numeric field of size

      Originally posted by davidv43 View Post
      I'm sorry, I am concentrating on the frmInitial ... thought the tabbed form on frmMain might be contributing to the problem because it's using a set. frmInitial uses only the demogrpahics table.

      Dave



      p.s. I still love A5 for MANY reasons, but I do get VERY frustrated with the fact that it "breaks" periodically for no apparent reason.
      Dave

      You have a numeric field that is set to a specfic size (they all are).

      A value that is larger than that size is trying to be stored there.

      ie numeric 5.2 means a total of 5 places(digits and format characters) can be store there. so 999.99 is the largest value. 1000 won't fit.

      ie numeric 9.2 - 99,999.99 is the largest value that can be stored.

      -9,999.99 is the smallest - the minus sign takes a space too

      You may need to increase the size of one or more numeric fields.

      hth
      Al Buchholz
      Bookwood Systems, LTD
      Weekly QReportBuilder Webinars Thursday 1 pm CST

      Occam's Razor - KISS
      Normalize till it hurts - De-normalize till it works.
      Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
      When we triage a problem it is much easier to read sample systems than to read a mind.
      "Make it as simple as possible, but not simpler."
      Albert Einstein

      http://www.iadn.com/images/media/iadn_member.png

      Comment


        #4
        Re: Data value cannot fit into numeric field of size

        Al,

        the error occurs even if I don't enter data into any numeric fields....

        also, why can't I exit the form by cancelling the save operation and simply quit the form?

        dave
        David A. Volgas, MD

        Comment


          #5
          Re: Data value cannot fit into numeric field of size

          Originally posted by Al Buchholz View Post
          ie numeric 9.2 - 99,999.99 is the largest value that can be stored.

          -9,999.99 is the smallest - the minus sign takes a space too
          Slight correction, I believe. A5 does not store commas in a numeric field.

          SO, if your numeric is set to 9.2

          ...the largest value is 999999.99 (or 999,999.99)
          ...the smallest value is -99999.99 (or -99,999.99)
          Peter
          AlphaBase Solutions, LLC

          [email protected]
          https://www.alphabasesolutions.com


          Comment


            #6
            Re: Data value cannot fit into numeric field of size

            Dave:

            I am trying to troubleshoot. Which database file do you open that exhibits this error. When I try to open to open patient master I get an error about a posting rule to demographics and Alpha locks up. I can open the database for demographics and the form opens with no errors.

            Steve

            Comment


              #7
              Re: Data value cannot fit into numeric field of size

              Peter,

              thank you for your effort.

              I am using the frmInitial form which is based off the demographic table
              David A. Volgas, MD

              Comment


                #8
                Re: Data value cannot fit into numeric field of size

                David,
                First off, me thinks you have made a change recently as what I found is the last field added to your Demographics table (WKSPO) is what is causing your problem---You have this as your calc field in field rules and when DOS_DEF is blank it will create an enormous number which, as your error message correctly states, will not fit into your field size.
                Code:
                (DATE() - DOS_DEF)/7
                Use this and see if it helps...
                Code:
                if(Dos_Def<>{},(DATE() - DOS_DEF)/7,0)
                Mike
                __________________________________________
                It is only when we forget all our learning that we begin to know.
                It's not what you look at that matters, it's what you see.
                Henry David Thoreau
                __________________________________________



                Comment


                  #9
                  Re: Data value cannot fit into numeric field of size

                  David,

                  Try going back several patches (in my case to 1938-3239 for a similar problem with an import). At least for text imports there is a bug in the 2005-3252 that will be fixed in the next patch.

                  Ray

                  Comment


                    #10
                    Re: Data value cannot fit into numeric field of size

                    David,
                    I also noticed that your frmScores form is corrupted.
                    Mike
                    __________________________________________
                    It is only when we forget all our learning that we begin to know.
                    It's not what you look at that matters, it's what you see.
                    Henry David Thoreau
                    __________________________________________



                    Comment


                      #11
                      Re: Data value cannot fit into numeric field of size

                      Dave:

                      As a start I removed all field rules and the error is no longer encountered when saving a record. Previous to removing the rules, I did receive the error you mentioned. I wold go back now and look at each rule to find the culprit.

                      Steve

                      Comment


                        #12
                        Re: Data value cannot fit into numeric field of size

                        thank you. I'll work on that. Would anyone else agree that you should be able to ESC a form without having to reboot A5?
                        David A. Volgas, MD

                        Comment


                          #13
                          Re: Data value cannot fit into numeric field of size

                          Before I found and fixed the problem, David, I used a5_close_all_windows(.t.) to close the offending window in the interactive editor.
                          Mike
                          __________________________________________
                          It is only when we forget all our learning that we begin to know.
                          It's not what you look at that matters, it's what you see.
                          Henry David Thoreau
                          __________________________________________



                          Comment


                            #14
                            Re: Data value cannot fit into numeric field of size

                            Originally posted by davidv43 View Post
                            Would anyone else agree that you should be able to ESC a form without having to reboot A5?
                            David,

                            Read my long winded private message to you.
                            Peter
                            AlphaBase Solutions, LLC

                            [email protected]
                            https://www.alphabasesolutions.com


                            Comment


                              #15
                              Re: Data value cannot fit into numeric field of size

                              Code:
                              I still love A5 for MANY reasons, but I do get VERY frustrated with the fact that it "breaks" periodically for no apparent reason
                              .I've found this to be true with most software programs, including Windows itself. Yes, it's frustrating. It's also frustrating when the problem is self-inflicted. Something I've done myself more times than I care to admit. In this instance was the fault Alpha's? Windows? Yours?

                              Later on...It would seem that Mike_C is on to the right track. If your field DOS_Def is empty, the calc field expresion you have for the WKSPO field results in a very big number. You can see this if you visit field rules for WKSPO field and open the Expression Editor. Maybe the fix is as simple as requiring a date to be inserted in the DOS_def field before the user is permitted to save the record? Maybe you want to populate that field automatically? I don't know. The point is the calc expression you developed makes an assumption. It assumes that the DOS_def field will never be empty. Remembering to bounds test calc expressions is a recurring problem for me. It looks like it's bitten you this time, too. -- tom
                              Last edited by Tom Cone Jr; February 14, 2009, 03:56 PM.

                              Comment

                              Working...
                              X