I am very new to MS Access. I have created a database My_database.mdb
with a form that displays some fields. The primary key is a field named Ticket
.
When I hit the "Search" button, I want to take the numerical value from the Ticket's text field and search for that number in database under 'Ticket' field.
If the number exists, I want to execute some set of instructions, if it does not, I want to execute other set of instructions.
What code should be in the Command_Click
function?