togur New member Local time Today, 10:45 Joined Mar 26, 2021 Messages 5 Mar 30, 2021 #1 I created a DB File in Access and login Form as start up, but i wannt to have a code that control before opening the login form, if the computer date is bigger than a certain date, than the file of DB do exit
I created a DB File in Access and login Form as start up, but i wannt to have a code that control before opening the login form, if the computer date is bigger than a certain date, than the file of DB do exit
MajP You've got your good things, and you've got mine. Local time Today, 13:45 Joined May 21, 2018 Messages 9,993 Mar 30, 2021 #2 Create an autoexecmacro and have it call a procedure Code: Public sub Expired() If date() >= #1/1/2022# then Msgbox "Exceeded useable date, The DB will Close" docmd.quit end if end sub
Create an autoexecmacro and have it call a procedure Code: Public sub Expired() If date() >= #1/1/2022# then Msgbox "Exceeded useable date, The DB will Close" docmd.quit end if end sub
togur New member Local time Today, 10:45 Joined Mar 26, 2021 Messages 5 Mar 30, 2021 #3 Thanks for helping it was perfect working!
theDBguy I’m here to help Staff member Local time Today, 10:45 Joined Oct 29, 2018 Messages 22,770 Mar 30, 2021 #4 Hi. Welcome to AWF!