You can only return one value at a time with this function, though you could put a lot of messy criteria into it for your purpose. Since you are referring to several fields that could contain the same values yet the new record could be a valid entry, I'd suggest you create a Find Duplicates Query and use form control references for criteria on as many fields as you think are required in determining whether or not to present a message. For example, and using my own names, the query field CustID (probably not customer name as you suggest) would contain criteria such as Forms!frmMain.txtCustID. You run the query at a point of your choosing; probably a button click or BeforeUpdate event (the latter will allow the creation of the record to be halted, the former will require a temp table setup) and if the returned record count is greater than zero, you present the warning. I agree with the notion that the similar records should immediately become available, although I'd present that as a choice in the message. If yes, the records could open in a data sheet view.
As for duplicate records, I see no real issue as long as something is different about the record AND the tables are properly normalized. However if you're storing the sales rep name, account rep name, product id along with customer name/address/phone etc. and repeating that information, I'd say your database is not set up right. The following is an overly simplistic example of what I'm talking about, but you can note there are no names in this table yet the same sales rep and account rep were involved in two sales to the same customer, yet the product is not the same. So you decide at what point there should be a warning.
CustID |
ProdID |
SalesRep |
AccountRep |
SaleDate |
159 |
25 |
15 |
7 |
8/13/2016 |
258 |
111 |
15 |
4 |
8/14/2016 |
12 |
33 |
22 |
9 |
8/15/2016 |
159 |
30 |
15 |
7 |
8/16/2016 |
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.