M
Michael_Randall
I am trying to figure out a good method for allowing a user to enter student
data into a form to determine if the student already exists in a table.
I have a table: STUDENTSTABLE with the fields Last_Name, First_Name, and DOB.
I have a form: frmSEARCH with the text boxes lname, fname, and dob. The form
also contains a button: search_students. I have not specified a record source
for the form.
After the user enters he student information into the form and clicks
search, a message box will popup stating whether the student is or is not
already in the table.
I know how to popup the message box and I know how to access the on-click
event of the button, and I know how to make sure that all fields in the form
contain data.
I don't know the best way, programmatically/or other to take the information
from the form and use it, I'm assuming in a query, to find out if those
values already exist in the table. I've read some of the ADO and DAO
information from the book Access 2007 Insided Out, but I seem to be missing
something.
Any would be greatly appreciated. Please let me know if you need
clarification as to what I have done so far.
Thanks.
data into a form to determine if the student already exists in a table.
I have a table: STUDENTSTABLE with the fields Last_Name, First_Name, and DOB.
I have a form: frmSEARCH with the text boxes lname, fname, and dob. The form
also contains a button: search_students. I have not specified a record source
for the form.
After the user enters he student information into the form and clicks
search, a message box will popup stating whether the student is or is not
already in the table.
I know how to popup the message box and I know how to access the on-click
event of the button, and I know how to make sure that all fields in the form
contain data.
I don't know the best way, programmatically/or other to take the information
from the form and use it, I'm assuming in a query, to find out if those
values already exist in the table. I've read some of the ADO and DAO
information from the book Access 2007 Insided Out, but I seem to be missing
something.
Any would be greatly appreciated. Please let me know if you need
clarification as to what I have done so far.
Thanks.