Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    London is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2019
    Posts
    7

    Validation Rule Error


    Hello,

    I am building an Access Database for my training company. One of my tables is very large and complex, it's primary purpose is to perform calculations related to my classes. Unfortunately it contains many calculate columns that stack on each other and I haven't figured out a way to normalize it without losing functionality. As a result I have repeatedly run up against the character size limit Access imposes for tables. This table allowed me to input up to 20 records, but on my 21st record it is now showing me an error related to a validation rule. I don't have any validation rules set, and I confirmed this. I also changed the table slightly to see if it was related to the size, but that didn't seem to change anything. I can still input data on my other tables, just not this one (or variants of it, I tried copying it without the data, and it gave me the same error when I tried to enter the first record). I have scoured the internet but have failed to find any explanation as to why this error is occurring. This table was working, and does work up to 20 records.

    I am using Access 2010 on Windows 10.

    Here is a screen capture of the error:
    Click image for larger version. 

Name:	Validation Rule Error.png 
Views:	31 
Size:	140.9 KB 
ID:	40493

    Any help or insight would be much appreciated, thank you.

  2. #2
    Mickjav is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Location
    Margate, Kent
    Posts
    123
    Don't use the calculate columns I think I heard they have problems plus you should build a form and only do the calculations as and when needed you shouln't store them in tables there are exceptions but what your doing wouldn't be covered by the exception.

    I have very large tables esp in my Style manager as I had to use one to one relationships https://databasedreams.createaforum.com/style-manager/

  3. #3
    London is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2019
    Posts
    7
    I have seen on other forums everyone saying don't use calculated columns, but for what I need there is no alternative. Queries can't do the complex calculations I need and having to run a bunch of queries is inefficient. The biggest problem is that the calculations must build off each other (one calculation is reliant on the outcome of another). These records are critical for my company and are specific to each entry, so I must store them. I haven't been able to find another way to do it that works as efficiently or effectively as this does (prior to the error message). I've tried alternatives but they just don't work. What is causing this error specifically, and is there a way to clear it?

    One to one relationships could do it, but calculated columns can't be used in relationships, and again I can't eliminate using them. If calculated columns were relational, then I could normalize my tables a lot more. But since they aren't I'm stuck with it like this.

  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,643
    I wonder if the error is coming from referential integrity. Can you add a record with valid selections in the fields, like 1 or 81 in the primary instructor field?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    London is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2019
    Posts
    7
    No, any attempts to add a record bring up the error message. Even when I attempt to add a record using the form I built for that purpose. I can edit existing records though no problem, just not add new ones.

    It should be noted that I created a backup awhile ago (and confirmed everything worked). I attempted to add a record in the backup just to see if it would work, and I also get the error (previously I did not). Even though I have not been working with the backup nor have changed anything with it.

  6. #6
    Mickjav is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Location
    Margate, Kent
    Posts
    123
    I have the same problem with a project I'm working on as it contans at present 2.5 million records in one table so what I did was for one set Look as picture

    I was able to use queries but for the reports It was too slow so I built a function to do the work

    Look at the attached file the report is built with a function
    https://databasedreams.createaforum....msg269/#msg269

    The third image stats screen show the Query version as it only has to work with a view charts it's very quick less than a second but for a chart report it's very slow
    https://databasedreams.createaforum....msg248/#msg248

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,643
    If Mickjav's thoughts don't help, can you attach the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    Mickjav is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Location
    Margate, Kent
    Posts
    123
    Sorry miss read your post

  9. #9
    London is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2019
    Posts
    7
    Okay, let's see if I'm tracking. You create a chart based off the table, then calculate using a query based off the chart?

    And yes, I might be able to attach the database here.

  10. #10
    Mickjav is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Location
    Margate, Kent
    Posts
    123
    It would help I might be able to write a function for you but will need to look first.

  11. #11
    London is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2019
    Posts
    7
    I wasn't sure if it was possible to upload the database directly to this forum, so I put it in my dropbox and have a link to it. I've tried changing a few things to get it to work, so I'm giving you all access to the backup I made before trying to make any changes in order to keep the variables more minimal and narrow down what the problem might be. This backup did work when I first created it, but is now also showing the same error. Any help would be appreciated, thank you.

    https://www.dropbox.com/s/y6vnesbsn1...-19.accdb?dl=0

  12. #12
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,643
    Wow, that is quite the table. You already know it's not normalized. I think you've hit some sort of limit. If I delete a bunch of fields from that table I can add a record to it. Access is not really built to work "across" like that. Hopefully Mickjav or someone else can offer a solution or some design thoughts. My head hurts and I can't look at it anymore.

    Okay really I'm just out of time, family coming for Christmas Eve, gotta go!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  13. #13
    Mickjav is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Location
    Margate, Kent
    Posts
    123
    Quote Originally Posted by pbaldy View Post
    Wow, that is quite the table. You already know it's not normalized. I think you've hit some sort of limit. If I delete a bunch of fields from that table I can add a record to it. Access is not really built to work "across" like that. Hopefully Mickjav or someone else can offer a solution or some design thoughts. My head hurts and I can't look at it anymore.

    Okay really I'm just out of time, family coming for Christmas Eve, gotta go!
    I will have a look and see what I can do but wont be until 26 now

  14. #14
    Mickjav is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Location
    Margate, Kent
    Posts
    123
    I've downloaded it had a quick look and already see i'll need to redesign it I'll work on it after christmas it should be fun to sort out.

    One thing that everybody should note it not to leave spaces in field names it can cause a lot of problems

  15. #15
    Mickjav is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Location
    Margate, Kent
    Posts
    123
    Found a few hours so had a play
    I have made a few assumptions

    One being you are dealing with a group of students rather than individual students

    This is inclomplete at present and I have been working more with the relationships rather than datafields they will come later.

    Click image for larger version. 

Name:	2019-12-25 (1).png 
Views:	17 
Size:	75.1 KB 
ID:	40514

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 11-09-2019, 04:06 PM
  2. Validation Rule
    By MdHaziq in forum Queries
    Replies: 3
    Last Post: 12-26-2017, 08:10 PM
  3. Replies: 4
    Last Post: 12-05-2017, 03:31 PM
  4. Replies: 2
    Last Post: 06-16-2015, 03:52 AM
  5. Replies: 2
    Last Post: 01-11-2014, 03:56 PM

Tags for this Thread

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