Hi all, this is a strange one. I have two fields on a form and after the 2nd field is entered I run code on the beforeupdate event to check if value1 is > value2 and stop the user from entering if so. This has always worked for years and still does most of the time.
BUT on some records it has suddenly started to error stating it is greater than when it is not - they are the same values (=). It allows you to enter any value less than but not equal to. I thought it might be a rounding issue but the data is stored as 2 decimal places and debug.print shows the values as identical in the immediate window. If the user removes Value1 and re-enters it, then enters Value2 again it accepts it. The only change recently is Value1 is being entered from a different database (automated by a routine), but I can't tell if it is just these that are causing the problem and if so why? Any ideas anyone??? Thanks... (Access 2010)
BUT on some records it has suddenly started to error stating it is greater than when it is not - they are the same values (=). It allows you to enter any value less than but not equal to. I thought it might be a rounding issue but the data is stored as 2 decimal places and debug.print shows the values as identical in the immediate window. If the user removes Value1 and re-enters it, then enters Value2 again it accepts it. The only change recently is Value1 is being entered from a different database (automated by a routine), but I can't tell if it is just these that are causing the problem and if so why? Any ideas anyone??? Thanks... (Access 2010)