Hi there
I am a newbie trying to be adventurous with my Access database...my query is how to locate a record based on user input.
Details:
I have a table with customer information with each customer assigned a unique customer ID number.
I want the user to be able to search through the table and locate records based on this unique ID number.
So far I have created a form with a command box and am trying to figure out how to write the code. I would like to do something like this:
1. Create an input box using the Inputbox function (I have done the code for this already)
2. Store the input the user gives for the customer number...I am not sure how to store the input in my code
3. Find the customer record based on the ID number
4. Open the customers form showing the correct record retrieved.
I understand that there is a findrecord method in VBA but couldn't find any information about this in the object browser....
Thanks in advance...thanks for helping out a newbie
Cheers!
I am a newbie trying to be adventurous with my Access database...my query is how to locate a record based on user input.
Details:
I have a table with customer information with each customer assigned a unique customer ID number.
I want the user to be able to search through the table and locate records based on this unique ID number.
So far I have created a form with a command box and am trying to figure out how to write the code. I would like to do something like this:
1. Create an input box using the Inputbox function (I have done the code for this already)
2. Store the input the user gives for the customer number...I am not sure how to store the input in my code
3. Find the customer record based on the ID number
4. Open the customers form showing the correct record retrieved.
I understand that there is a findrecord method in VBA but couldn't find any information about this in the object browser....
Thanks in advance...thanks for helping out a newbie
Cheers!