New to Access 2013 - Would like to create a dynamic search form -
i new access 2013 , create form allows users interactively enter search parameters , see results listed on same form multiple items or data sheet.
this work search on web page:
users enter search criteria , click search button. data grid display results. each time user re-enters search criteria, data grid reloaded query results. important user not required launch 1 form enter criteria , see results on form. should done on same form.
my questions are:
- if use vba handle click event , perform query, possible programmatically set control source of data sheet or multiple items new query results?
the method used create dynamic search form is:
create access form prompt search paramaters. mine consisted of 2 text boxes format set general date. (i want list rows between start , end date), unbound list box results , command button execute search.
create access query uses criteria setting references starting , ending text boxes on search form. field name want use named eventdate. in qbe, set criteria entry eventdate field to:
between [forms]![frmsimplesearch]![txtstartdate] , [forms]![frmsimplesearch]![txtendingeventdate]
for click event of search button, use following code:
private sub cmdsearch_click()
' search events between start , end date lstresults.rowsource = "qryeventsindaterange" lstresults.requery
end sub
Comments
Post a Comment