Results 1 to 6 of 6
  1. #1
    Kalmed2018 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    20

    Validation rule playing up

    Hi all,





    I use a database with many different tables, forms, queries etc. The basic table contains fields like first name, surname, date of birth, address etc. For the surname field i use a validation rule: Like "a*" Or Like "b*" Or Like "c*" Or Like "d*" Or Like "e*" Like "f*" Or Like "g*" Or Like "h*" Or Like "i*" Or Like "j*" Or Like "k*" Or Like "e*" Like "f*" with the validation text: Only for A - K Surnames. Otherwise please use L - Z My Practice. It has been working perfectly fine for a few months now. However, over the past few weeks it will not allow me to use surnames starting with "E" or "F" and every time i try one of these letters i get the validation text. It still works as expected for all the other letters of the alphabet. Did anyone have any similar problems? Is there any solution to that?



    Many thanks,


    ps: the reason for the validation rule is that my database became too big (over 2 GB) and I chose to split in half, one for clients A-K and one identical for L-Z.

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    Missing Or?
    Or Like "e*"
    Or Like "f*"

  3. #3
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    How many records do you have that have made it exceed 2Gb ?
    Have you tried a compact and repair ? Is the database split ?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    Kalmed2018 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    20
    Hi Davegri,

    you were right! i added the Or and it works fine again. I can't understand how that happened as definitely the syntax was correct to start with as it has been working for a few months now and i had used e and f before! Anyhow, thank you for your help and for your interest!!
    Best wishes.

  5. #5
    Kalmed2018 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Posts
    20
    i know, it is insane. Perhaps it is not the nember of records that much as the structure of the database that consists of meny diferrent tables interacting together. As i am quite novice and this is an important database i wouldnt consider a restructure. Compact and repair did not reduce the size significantly. Thank you for your interest!

  6. #6
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    Kalmed, the sneaky Access hacker sometimes appears and changes my code too!
    We must remain vigilant.

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

Similar Threads

  1. Replies: 4
    Last Post: 12-05-2017, 03:31 PM
  2. help in validation rule
    By Mohaisen in forum Access
    Replies: 12
    Last Post: 08-03-2015, 01:05 PM
  3. Replies: 2
    Last Post: 06-16-2015, 03:52 AM
  4. Validation Rule
    By Sanjo in forum Forms
    Replies: 2
    Last Post: 12-10-2013, 11:02 PM
  5. Validation Rule
    By WayneSteenkamp in forum Access
    Replies: 7
    Last Post: 03-01-2012, 04:22 AM

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