L
lopemanc
Hi All,
Have not dug deep into MS Access in quite some time, so please realize
I am probably missing something simple. Thanks for your patience.
I have created a form. As part of my validation I run a query from VBA
code. After I figured out that I needed to evaluate the parameters
before fetching the records this worked well. As created the query
contains something like:
"Forms![Compact Control Editor]![CGE_Control_Index] "
However, I am trying to get a little reuse out of the query and
understand MS Access better. I really want to use the same query on a
different form. This is a problem since the "[Compact Control Editor]"
ties it to a single form. I can certainly keep the field name
consistent across forms. So what I really need is a way the query to
reference the current form. I have tried several different object and
still do not have success.
Thanks For Your Help,
Chris
Have not dug deep into MS Access in quite some time, so please realize
I am probably missing something simple. Thanks for your patience.
I have created a form. As part of my validation I run a query from VBA
code. After I figured out that I needed to evaluate the parameters
before fetching the records this worked well. As created the query
contains something like:
"Forms![Compact Control Editor]![CGE_Control_Index] "
However, I am trying to get a little reuse out of the query and
understand MS Access better. I really want to use the same query on a
different form. This is a problem since the "[Compact Control Editor]"
ties it to a single form. I can certainly keep the field name
consistent across forms. So what I really need is a way the query to
reference the current form. I have tried several different object and
still do not have success.
Thanks For Your Help,
Chris