My main question is if I am searching for a Record in Access, is there a way to make it so that if my search does not find a record, that I can be prompted to make a new record based off that search Criteria?
For instance, if I was searching for a last name Burge to make sure Burge wasn’t in my record and I found out it isn’t, to then have Access prompt me if I want to create a record based on that name?
As of right now, I am just using the search button that is in Access. I haven’t done anything to it.
I suspect you will need to override this ‘search’ bar and implement your own. Put your own unbound text control in the header (or footer) portion of your form. Next, disable navigation buttons to force the user to use your controls. In the after update event for your textbox that you’re using to search, you will set your Form.Filter property to your text box control. Like
Then you will check to see if the record wasn’t found. By default, the filter will open a new record if the filter criteria is not met. You may then set the new record’s Last Name value to your filter boxes value with something like
This is just one of many ways to do this.