I have a form I've been working on and ready to scream....
I'm new to VBA which doesn't help any. The form I created is linked to a table. On it I have the fields that are associated with the table, a text box and a search button. What I'm trying to do is get the value in the text box (user entered) and search the table for a match. If there isn't a match display an error message. If there is a match have that information display in the fields.
I've found different ways of writing it but nothing seems to work. Do I put it in the private button on click or have it as a public? It's the only button on the form.
I think my biggest problem is that I'm making it harder than it needs to be.
Thanks
I'm new to VBA which doesn't help any. The form I created is linked to a table. On it I have the fields that are associated with the table, a text box and a search button. What I'm trying to do is get the value in the text box (user entered) and search the table for a match. If there isn't a match display an error message. If there is a match have that information display in the fields.
I've found different ways of writing it but nothing seems to work. Do I put it in the private button on click or have it as a public? It's the only button on the form.
I think my biggest problem is that I'm making it harder than it needs to be.
Thanks