I have a form (MyForm) for users to input data (two key fields they enter in the form are DATE and LOCATION). Then when they click a MySave button on MyForm, the data they entered in the form is saved to individual columns the next blank row in a spreadsheet.
I want to make sure that they cannot save a record that has the exact same DATE and LOCATION as a record that had already been saved in the spreadsheet.
So I'm looking for some code that I can have on the click event for MySave that first checks the spreadsheet to ensure a record with the same date in the DATE column and the same location in the LOCATION column does not exist. If such a record already exists, then a msgbox appears telling the user that the record already exists.
Bookmarks