P
Petr Danes
A query can access values on a form, when the form is open. Is it possible
for a query to access the values in:
1. A global variable?
2. A document variable?
3. A custom document property?
If so, what is the syntax?
I have sets of queries that I run from code. Some have parameters, some do
not and of the ones that do, not all have the same parameters. Using
standard parameters queries, I have to feed the values manually - my query
execution routine must know the structure of each query, i.e., how many
parameters and what they're called, or the order in which the parameters are
requested. This is not ideal - I would prefer to set up some values in the
section of code that knows something about the current situation, then call
my generic ExecQueries routine with only the information about which queries
it is to execute.
It is possible to create a custom form which would I would open and load
with 'parameter' values as needed, but that seems a little clunky. The
internal variables would seem a cleaner solution, but I have so far been
unable to access such values.
Petr
for a query to access the values in:
1. A global variable?
2. A document variable?
3. A custom document property?
If so, what is the syntax?
I have sets of queries that I run from code. Some have parameters, some do
not and of the ones that do, not all have the same parameters. Using
standard parameters queries, I have to feed the values manually - my query
execution routine must know the structure of each query, i.e., how many
parameters and what they're called, or the order in which the parameters are
requested. This is not ideal - I would prefer to set up some values in the
section of code that knows something about the current situation, then call
my generic ExecQueries routine with only the information about which queries
it is to execute.
It is possible to create a custom form which would I would open and load
with 'parameter' values as needed, but that seems a little clunky. The
internal variables would seem a cleaner solution, but I have so far been
unable to access such values.
Petr