Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query parameter from VBA

Status
Not open for further replies.

ImChard

IS-IT--Management
Jun 17, 2011
6
US
I have a form that opens and displays records based on a select query. I want to add a button to the form so thet when clicked there is a prompt comes up that aske for the [Last_Name]to filter the records on and then refresh the form to reflect this.. I can do this in the criteria of the query (Like "*" & [Enter all or part of Last Name] & "*") but then it happens anytime the query is run. I only want it to run when the button is clicked.
 


Hi,

Seems to me like you're using MS Access. Try posting in one of the MANY Access forums on Tek-Tips. like forum702.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top