T
Tony
Hi Group
I have extended a general search form provided on Dev Ashish's Access site to allows users to filter a main input form based on the results of a performed search. It works well but I would like to extend this search routine further to allow users to filter fields on subforms, which also appear on the main input form. (As the fields on the subform are linked to the main form they should filter the main form as well)
In extending this routine I have added the subform fields to my main search query. The problem occurs when I try to return to my main form as Access asks me to 'Enter Parameter Value'. Is there a way around this?
Here is the working code for filtering fields on the main form. (strGlobalSQLWhere is the product of a dynamic SQL routine that is produced and captured by the search form)
Any help would be grateful
Tony
'VBA Cod
'Open up and filter main by using Where claus
Dim stDocName As Strin
stDocName = "frmMainForm
DoCmd.OpenForm stDocName, , , strGlobalSQLWhere
I have extended a general search form provided on Dev Ashish's Access site to allows users to filter a main input form based on the results of a performed search. It works well but I would like to extend this search routine further to allow users to filter fields on subforms, which also appear on the main input form. (As the fields on the subform are linked to the main form they should filter the main form as well)
In extending this routine I have added the subform fields to my main search query. The problem occurs when I try to return to my main form as Access asks me to 'Enter Parameter Value'. Is there a way around this?
Here is the working code for filtering fields on the main form. (strGlobalSQLWhere is the product of a dynamic SQL routine that is produced and captured by the search form)
Any help would be grateful
Tony
'VBA Cod
'Open up and filter main by using Where claus
Dim stDocName As Strin
stDocName = "frmMainForm
DoCmd.OpenForm stDocName, , , strGlobalSQLWhere