Hi,
I have a database with several nearly identical tables and several identical forms, each form linked to a table via a qry to limit the recordset.
I call up each form from a front end form using a seperate button, I would like to use one common form to display the relevant table data from any single one of the different queries.
I would like to open the common form and define the forms recordset from the button code.
I've tried putting the query name in the [Filtername] part of the DoCmd.open form code but it doesn't work.
when the form opens it uses a
and this fails saying that "Object variable or With block variable not set".
I just want one form to manage not multiple ones.
Any ideas anyone?
I have a database with several nearly identical tables and several identical forms, each form linked to a table via a qry to limit the recordset.
I call up each form from a front end form using a seperate button, I would like to use one common form to display the relevant table data from any single one of the different queries.
I would like to open the common form and define the forms recordset from the button code.
I've tried putting the query name in the [Filtername] part of the DoCmd.open form code but it doesn't work.
Code:
DoCmd.OpenForm stDocName, , queryName, stLinkCriteria
Code:
Set rs = Me.Recordset.Clone
rs.FindFirst "[dates] >= CDate('" & Date & "')"
I just want one form to manage not multiple ones.
Any ideas anyone?