C
Curtis
I am using Microsoft Office Prof Ed 2003, SP2 for my access dbs and I wasn't
sure if this is a Form Coding question or a Macro question. I am having
problems in coding/macro usage on a cmdbutton: I am using the frmList of
Reports as Start Up Form. There are several cmdbuttons on this from, linking
to several Macros which in turn open several reports. One of my cmdbuttons
when pressed via Macro, opens [qryRequirement Status Comp by ETID], which
requires [Enter ETID] as a parameter. I want the user to be able to copy and
paste the results of that query directly into his own Excel directory, so he
can then manipulate the data and display it depending on that day's tasking.
The macro name: mcrfrmLOR4RR.LOR4 RRSRCR: On Click; has the Action:
OpenQuery: qryRequirement Status Comp by ETID.
As I enter the [ETID]; the macro opens the query in the background, leaving
the frmList of Reports in front. If I press the upper right close button on
the form, I am able to copy and paste the results of the query. Upon using
the upper right close button on the query, the db is closed. If I add the
2nd part of the Macro: Close: frmList of Reports, when the cmdbutton is
pressed, the frmList of Reports does close automatically, the query is
displayed and again the db is closed when I press the upper right close
button on the query results. Is there a way to place the frmList of Reports
in the background while the query is open, and when I close the query, the
frmList of Reports is the main focus; displayed in front. Someone mentioned
that coding would fix the problem, however, I’m not sure what the wording and
placement of the code would be since I don’t use VBA. Any suggestion would
be appreciative.
sure if this is a Form Coding question or a Macro question. I am having
problems in coding/macro usage on a cmdbutton: I am using the frmList of
Reports as Start Up Form. There are several cmdbuttons on this from, linking
to several Macros which in turn open several reports. One of my cmdbuttons
when pressed via Macro, opens [qryRequirement Status Comp by ETID], which
requires [Enter ETID] as a parameter. I want the user to be able to copy and
paste the results of that query directly into his own Excel directory, so he
can then manipulate the data and display it depending on that day's tasking.
The macro name: mcrfrmLOR4RR.LOR4 RRSRCR: On Click; has the Action:
OpenQuery: qryRequirement Status Comp by ETID.
As I enter the [ETID]; the macro opens the query in the background, leaving
the frmList of Reports in front. If I press the upper right close button on
the form, I am able to copy and paste the results of the query. Upon using
the upper right close button on the query, the db is closed. If I add the
2nd part of the Macro: Close: frmList of Reports, when the cmdbutton is
pressed, the frmList of Reports does close automatically, the query is
displayed and again the db is closed when I press the upper right close
button on the query results. Is there a way to place the frmList of Reports
in the background while the query is open, and when I close the query, the
frmList of Reports is the main focus; displayed in front. Someone mentioned
that coding would fix the problem, however, I’m not sure what the wording and
placement of the code would be since I don’t use VBA. Any suggestion would
be appreciative.