Results 1 to 15 of 15
  1. #1
    jlindquist23 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jan 2019
    Posts
    43

    Question Number range restriction

    I have a database that kicks back a message if you enter a number higher than 55.
    I need to change the range to a higher number but can't figure out how it was programmed.


    There isn't a limit/range set in the query or in the table for that variable.
    I've looked through the code to find it and no luck.

    Can someone think of where else it would be?
    Thank you!!Click image for larger version. 

Name:	Capture.JPG 
Views:	19 
Size:	24.0 KB 
ID:	47130Click image for larger version. 

Name:	Capture3.JPG 
Views:	20 
Size:	34.6 KB 
ID:	47128Click image for larger version. 

Name:	Capture2.JPG 
Views:	19 
Size:	48.8 KB 
ID:	47129

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Not really.
    Why not upload the DB?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    Might be here in table design:

    Click image for larger version. 

Name:	jlind.png 
Views:	22 
Size:	7.9 KB 
ID:	47131

  4. #4
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    There sees to be 2 properties missing from that table design pic?
    Odd that Single is being used for a field that would have a max value of 2 digits (unless decimal places are required, I guess). The validation is probably in the form code.
    @jlindquist23; do you tend to struggle with getting info in/out of this db? I ask because it's fairly obvious that it's not normalized.
    Last edited by Micron; 01-21-2022 at 01:45 PM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    jlindquist23 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jan 2019
    Posts
    43
    Thanks for the suggestion! I went and looked and those are blank.

  6. #6
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    There sees to be 2 properties missing from that table design pic?
    @Micron, I see that now, too. And I learned something. The table design view is affected by options:

    Click image for larger version. 

Name:	table.png 
Views:	21 
Size:	32.0 KB 
ID:	47132

  7. #7
    jlindquist23 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jan 2019
    Posts
    43
    They do use a one place decimal.
    I'm not sure what "normalized" means.

  8. #8
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    @davegri; Isn't that for the little 'button' (looks like the little error checking flag) for updating all where the field is used? IIRC, you deselect that option and you don't get prompted if you change a field from integer to long for example? In your pic it looks like you chose a text field as opposed to a number type field so some options certainly would not apply to one or the other.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  9. #9
    jlindquist23 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jan 2019
    Posts
    43
    Everything in the database works great!
    I just can't remember how the number entry was restricted. I know that the entry can't be above 57.
    The validation rule and text are blank.

  10. #10
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    Quote Originally Posted by jlindquist23 View Post
    They do use a one place decimal.
    I'm not sure what "normalized" means.
    You appear to have repeating fields (fields with very similar names distinguished by some characteristic - often by appending numbers).

    A table is for an entity, the fields are for its attributes, so I'm not saying the table or db lacks normalization for sure because I don't know what the entity is or what its attributes are. Just going by the similar names here. Ask Google about db normalization if you don't know what it is. You might find it to be a challenging concept to fully grasp - it's not a breeze for most people, I think.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  11. #11
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    Quote Originally Posted by jlindquist23 View Post
    Everything in the database works great!
    I just can't remember how the number entry was restricted. I know that the entry can't be above 57.
    The validation rule and text are blank.
    Then it's probably code behind the form as I mentioned. You'd have to put it into design view and open vb editor if it's not restricted (Ctrl+G) and look at update event code. Or post zipped db copy. Could also be Form_BeforeInsert code.
    Last edited by Micron; 01-21-2022 at 02:25 PM. Reason: added info
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  12. #12
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Is there a Settings table even?, where that limit is set?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  13. #13
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    Bit confused - you are suggesting the limit applies to Centre Grind (at least that is what your images show and you haven't actually stated which field you are concerned about). But the message is about hardness which would appear to be another field. Perhaps you are looking at the wrong field?

  14. #14
    jlindquist23 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jan 2019
    Posts
    43

    Solved

    The database is split and has a back end to it.
    I didn't realize that you couldn't see the validation rules when looking at the table from the front end of the database.
    Thanks everyone for your help!

  15. #15
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Why not mark it solved in the Thread Tools?
    That way people can see immediately?

    Edit: I can see Validation rules fine from my FE ?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. counting number of values in a range
    By lburch in forum Queries
    Replies: 4
    Last Post: 01-24-2021, 05:19 AM
  2. Number of months in a specific time range
    By alabamax in forum Modules
    Replies: 5
    Last Post: 02-22-2020, 01:18 PM
  3. Replies: 7
    Last Post: 04-21-2014, 12:26 PM
  4. Replies: 4
    Last Post: 12-14-2010, 07:10 PM
  5. how to convert week number to date range
    By qwang1115 in forum Access
    Replies: 1
    Last Post: 02-13-2009, 11:35 AM

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