Hello !
At this moment I have 3 Front End databases based on a Back End one.
In each Front End I have reports.
Almost all are based on parametric queries.
All parameters are passed using Public Functions.
Here you can see a sketch of how I use this functions:
In the queries (Criteria Row) I call the function:
Almost all the reports (and their queries) are identical.
So, now, I have 3 identical reports (and queries) for each purpose (one in each front end database). Of course I collect parameters from their parent database.
What I wish to do:
To store this reports (and their queries) only once, in a single place (a new front end database or, maybe better, in the back end database) in order to apply it from where I need.
Of course I must be able to pass parameters to their queries.
Is this scenario possible ?
The main question is How to pass parameters from the current database ? (from where I wish to open the reports)
Hope I explain ok the situation.
Thank you in advance !
At this moment I have 3 Front End databases based on a Back End one.
In each Front End I have reports.
Almost all are based on parametric queries.
All parameters are passed using Public Functions.
Here you can see a sketch of how I use this functions:
Code:
Public VarName as Long
Public Function RetVal(ParamName As String)
Select Case ParamName
Case "frmFormName_ID"
RetVal = form_FormName.ID
Case "VarName"
RetVal = VarName 'Value for VarName is set before running the query
......
Case Else
Stop 'Debug purpose
End Select
End Function
In the queries (Criteria Row) I call the function:
Code:
RetVal("NameOfParameter")
Almost all the reports (and their queries) are identical.
So, now, I have 3 identical reports (and queries) for each purpose (one in each front end database). Of course I collect parameters from their parent database.
What I wish to do:
To store this reports (and their queries) only once, in a single place (a new front end database or, maybe better, in the back end database) in order to apply it from where I need.
Of course I must be able to pass parameters to their queries.
Is this scenario possible ?
The main question is How to pass parameters from the current database ? (from where I wish to open the reports)
Hope I explain ok the situation.
Thank you in advance !
Comment