Have txtbox where user enters vendor invoice number
I want to go into my table dbo_AccountsPayable and see if there is a record where [InvoiceNumber] = the data in the txtbox
If found then I need to open a form and display the data from that record.
docmd openform "Found"
If not found I need to open a different form and insert a new record into the table.
docmd openform "NotFound"
I know it's basic but I am having a DUGH moment
Thanks in advance for any help