Results 1 to 10 of 10
  1. #1
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183

    weird problem with field in form

    I am unable to enter numbers to a field like .50 or .63 and so on. The field won't allow me to enter '.' and if I type in .23, it will give me 32


    The field is acting weird and goes backward.

    The field is called RATE and it is in - NUMBER, LONG INTEGER, AUTO DECIMAL

    I have tried - DOUBLE and it won't work as well.

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Long Integer will not hold a decimal value (hence the name integer). Double should, as should Currency. What happens when the data type is one of those?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by pbaldy View Post
    Long Integer will not hold a decimal value (hence the name integer). Double should, as should Currency. What happens when the data type is one of those?
    Thanks for your help. I did try changing it to Double. the error produced seems to be the same. When I type 25 in the form...the field gives me 25 and I get an error message. please see attached

    Click image for larger version. 

Name:	Untitled.png 
Views:	15 
Size:	49.7 KB 
ID:	19359

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    That's an odd one. If you create a new form based on the table, can you enter the data? I wonder if that form got corrupted.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    That does not look like a standard error message from MS Access. Access will not ask you to call your network administrator, because in many cases it isn't even on a network. You might also want to scan your computer for malware - that error message looks a bit suspicious from that point of view as well.

    For the field that is giving you problems - what are the settings (if any) for input mask or validation rule?

    Are there any form or control event procedures that might produce this error?

  6. #6
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by pbaldy View Post
    That's an odd one. If you create a new form based on the table, can you enter the data? I wonder if that form got corrupted.
    Yea..I still can't understand why the numbers I type goes backward. The rest of the fields look fine though. Could it be version issue? This database was built like 10 years ago and I added the new fields recently.

  7. #7
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by John_G View Post
    That does not look like a standard error message from MS Access. It does not ask you to call your network administrator, because in many cases it isn't even on a network. You might also want to scan your computer for malware - that error message looks a bit suspicious from that point of view as well.

    Thanks John!

    For the field that is giving you problems - what are the settings (if any) for input mask or validation rule?

    Are there any form or control event procedures that might produce this error?
    It could be the control event procedures. I'll check again.

    I have a code back-end that will give me values which I can edit...

    Code:
    Field A AFTERUPDATE is 
    Rate = (Field A+ FIELD B+ FIELD C)/180
    
    Field B AFTERUPDATE is 
    Rate = (Field A+ FIELD B+ FIELD C)/180
    
    Field C AFTERUPDATE is 
    Rate = (FIELD A+ FIELD B+ FIELD C)/180
    There is no coding in RATE field and RATE field is editable. This is where I am having the error. Could that be the problem?

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    It doesn't sound like a version issue. Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    If you really have fields named Field A, Field B and Field C, you are missing brackets.

    Code:
    Rate = ([Field A] + [FIELD B] + [FIELD C])/180
    Should never use spaces, punctuation or special characters (except the underscore) in object names.

  10. #10
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by ssanfu View Post
    If you really have fields named Field A, Field B and Field C, you are missing brackets.

    Code:
    Rate = ([Field A] + [FIELD B] + [FIELD C])/180
    Should never use spaces, punctuation or special characters (except the underscore) in object names.
    Thanks ssanfu! I do have the brackets - sorry, I should have mentioned that earlier.




    Quote Originally Posted by pbaldy View Post
    It doesn't sound like a version issue. Can you post the db here?
    I'll try to post the db here soon. I need to delete my old data first as they are confidential data.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Weird problem with Call Shell
    By oatsybob in forum Programming
    Replies: 8
    Last Post: 07-04-2013, 12:02 AM
  2. Another Weird Problem
    By ksmith in forum Access
    Replies: 16
    Last Post: 07-24-2012, 10:45 AM
  3. Weird Problem
    By ksmith in forum Access
    Replies: 5
    Last Post: 11-09-2011, 11:26 AM
  4. Weird problem after splitting DB
    By crowegreg in forum Programming
    Replies: 1
    Last Post: 09-09-2011, 09:50 AM
  5. Weird Form Control Problem
    By MWB in forum Access
    Replies: 3
    Last Post: 11-17-2010, 05:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums