D
Daniel Zazula
Suppose that I have an Access 2007 application and a query
(ExampleQuery) that deletes one or more records using as criteria a
field (ExampleField) present in a form (ExampleForm), like this:
Delete * From ExampleTable Where ExampleTableColumn > [Forms]!
[ExampleForm]![ExampleField]
Now suppose that I need to change that query so it can be called from
various forms, and not only from 'ExampleForm', so I turn it into a
parameterized query:
Delete * From ExampleTable Where ExampleTableColumn
How can I fill this parameter from 4 different forms? (no prompting
the user for parameters)
In the real case I need to change lots of queries and lots of forms
and neither I nor anybody in the company knows VB, so I can't use
temporary variables or VB script, unless someone knows a very generic
VB function like OpenQuery(QueryName, ArrayOfParameters,
ArrayOfParametersValues). Macros are Ok through.
I heard that this is possible in Access 2010, through I don't know
how, I was wondering if its possible in Access 2007 also.
(ExampleQuery) that deletes one or more records using as criteria a
field (ExampleField) present in a form (ExampleForm), like this:
Delete * From ExampleTable Where ExampleTableColumn > [Forms]!
[ExampleForm]![ExampleField]
Now suppose that I need to change that query so it can be called from
various forms, and not only from 'ExampleForm', so I turn it into a
parameterized query:
Delete * From ExampleTable Where ExampleTableColumn
:ExampleParameter
How can I fill this parameter from 4 different forms? (no prompting
the user for parameters)
In the real case I need to change lots of queries and lots of forms
and neither I nor anybody in the company knows VB, so I can't use
temporary variables or VB script, unless someone knows a very generic
VB function like OpenQuery(QueryName, ArrayOfParameters,
ArrayOfParametersValues). Macros are Ok through.
I heard that this is possible in Access 2010, through I don't know
how, I was wondering if its possible in Access 2007 also.