HI, I have a form that pulls info from a table. I want users to be able to search for existing records before entering a new one so if it exists they an update the existing rather than create a new record. I created a find record button and used the built in functions on create button to make it find records. it works OK and brings up the 'FIND and Replace' search box.
However I have a couple of issues with it,
1. it doesn't always find the record for some reason -(on some occasions if the users exit the form and then go back in and try again it works but not always - users set search parameters to 'whole document' and 'any part of field')
2, I would like it to give an error message if users try and enter a value in a specific field that already exists - the field is set to numeric
I have seen some mention of how you can use Dcount to do this but I am not sure of how to write the code to make it work can anyone help me?
the table the form is based on is called Table1 and the field I want to search is called System_Number
Thanks
J