0
In an Access BD with a "Data" field, when entering data in this field, is it possible to do something so that dates passed 3 days ago are rejected? If possible, please teach me! In fact, I only managed to ensure that future dates are not inserted, through the following expression in the property "Validation rule": <=Data(). It is that the data are collected, daily, through Outlook form and some send with very old date. Thank you!
Have you ever tried to develop something? They will hardly give you something ready. Try to show what you have tried
– Guilherme Lima
Ok, actually I only managed to get future dates not to be inserted, through the following expression in the property "Validation rule": <=Data(). It is that the data are collected, daily, through Outlook form and some send with very old date. Thank you!
– Cabinda
add your attempt into the question body, try
(Date()) <= (Date() - 3)
– Hebert Lima
correction (Date()) >= (Date() - 3)
– Hebert Lima
Thanks friend @Hebertdelima de Lima, I tried your suggestion, did not work but, I confess that helped me a lot because, allowed me to think and try the expression '>=Data()-3', with which the BD prevents the old dates intended but unfortunately accepts future dates (least). So I fight harder, although I feel very satisfied, thank you!
– Cabinda
do you want the maximum date to be the current day, and the old date at most 3 days? your condition would be
hoje >=Date()-3 e hoje <= Date()
?– Hebert Lima
Thanks, dear @Hebertdelima you helped me a lot, I’m happy, thank you! But, it must be said that the condition with the words "today" did not help, I tried to eliminate and it worked, I mean, I used the following:>=Date()-3 E <=Date().
– Cabinda
Blessed hour that I found this space with wonderful people with Mr. @Hebertdelima, I am sure that I will learn a lot and little by little by realizing my dream of understanding Programming, although, unfortunately for the moment, I have very little to contribute, because I am still at level 0 or 1/1000 (rs). Thank you, I count on you for other questions and may the Lord bless us!
– Cabinda