Trying to set up a on click command button on form1 that will open to a record in form2 based on matching date fields on form1 and form2.
I would also like if there is no match then it opens to a new record in form2. Also like the ability to still go back to previous records in form2 without having to press the filter. I can't seem to get the order correct using vba.
Form1 is my main menu with a =date() field. Once and employ creates form2 for the current day I'd like other employees to be able to click the button and go straight to the current days record but if that record doesn't exist yet I'd like a new record to appear. There will never be two records in form2 with the same date.
I would also like if there is no match then it opens to a new record in form2. Also like the ability to still go back to previous records in form2 without having to press the filter. I can't seem to get the order correct using vba.
Form1 is my main menu with a =date() field. Once and employ creates form2 for the current day I'd like other employees to be able to click the button and go straight to the current days record but if that record doesn't exist yet I'd like a new record to appear. There will never be two records in form2 with the same date.