G
Guest
I need to create a submit button that will move a text string from a text box
on a form and enter it into a query statement.
I am learning Microsoft Access. I have created a query where the user must
enter a text string to pull information out of a table. Currently this is
set up with this statement…
Like '*' & [Text String Goes Here] & '*'
I would now like to take this to the next level by putting the results of
the query into a form and also by placing a control in the form that will
allow me to supply the text string for the query.
I believe I have solved most of what is needed. I have the ability to
design the form to display the results of a query. I also believe that if I
replace the square brackets in the query to input the text string from the
form required by the “like†statement I would just replace the square
brackets in the “like†statement with criteria like this…
[Forms]![NameOfYourForm]![NameOfControlOnYourForm]
It would then look like this…
Like '*' & [Forms]![NameOfYourForm]![NameOfControlOnYourForm] & '*'
Is that right?
The last piece of the puzzle now is to design a submit button that will run
the query. Right? I know how to place the button, but I do not know how to
make it function. Are my assumptions on the basic procedures correct? I
really look forward to being able to do this.
Quin
on a form and enter it into a query statement.
I am learning Microsoft Access. I have created a query where the user must
enter a text string to pull information out of a table. Currently this is
set up with this statement…
Like '*' & [Text String Goes Here] & '*'
I would now like to take this to the next level by putting the results of
the query into a form and also by placing a control in the form that will
allow me to supply the text string for the query.
I believe I have solved most of what is needed. I have the ability to
design the form to display the results of a query. I also believe that if I
replace the square brackets in the query to input the text string from the
form required by the “like†statement I would just replace the square
brackets in the “like†statement with criteria like this…
[Forms]![NameOfYourForm]![NameOfControlOnYourForm]
It would then look like this…
Like '*' & [Forms]![NameOfYourForm]![NameOfControlOnYourForm] & '*'
Is that right?
The last piece of the puzzle now is to design a submit button that will run
the query. Right? I know how to place the button, but I do not know how to
make it function. Are my assumptions on the basic procedures correct? I
really look forward to being able to do this.
Quin