Yes, thanks.
I created a db in Access 2000. There are several reports
which are each built upon several parameter queries. I use
a form to ask for the parameter which then supplies the
parameter to all queries and prints the parameter in the
report. On opening the report the macro opens the user
input form, the OK button on the form hides the
form, keeping it open, so the queries can access the
parameter. Closing the report closes the form. This is
straight from Access Help files and is something my users
use daily. It has always worked beautifully.
I upgraded to Access 2003 and now the macro errors at the
SetValue action (Object: my input form, Property:
[Visible] Value: No)that hides the form. I get an error
message stating that "there is an invalid reference to the
property visible. The property may not exist or may not
apply to the object specified." But Access' documentation
says that the visible property does apply to a form.
Sometimes I get the message that I need to register my
Active X control, (I am only using the standard command
button on the form toolbox). So I tried making sure I had
all my needed references set per online help article - I
don't have the article #, but it is titled "References
that you must set when you use Office Access 2003." I am
unable to set any references. I get error message then
that says the "name conflicts with an existing module,
project or library."
I have tried Office Updates and repairing my installation
(as well as swearing and making faces at the monitor).
This should work! Is this a bug with 2003? I can't allow
my company to install the upgrades we already obtained if
the databases won't work after!
Thanks very much for your help.
Erin
-----Original Message-----
I have not seen other similar problems with A2003, so perhaps it is related
to your specific code/macro? Can you post more information here about what
you were doing and what isn't working?
--
Ken Snell
<MS ACCESS MVP>
Yes, but this won't work if you have Access 2003! The Set
Value action to hide the form while keeping it open for
the queries to access won't work! There are 4 postings
about this problem in this group since Christmas, but no
answers to the problem:
Macro problem macro frustration 1/2/04
Macro action failed 1/14/04
Problem with Macro 1/19/04
Macro errors after 2003 upgrad! 1/19/04 (mine)
(and another of mine from 12/22/03)
Can anyone help?
-----Original Message-----
Not directly.
If you want this option, then don't use the built-
in "parameter" box
(actually an InputBox). Create your own form that allows
the user to enter
the desired value(s) into textbox(es) and then they can
click an OK (or Run)
command button, or they can click a Cancel button. You
then have each button
run its own code to either run the query (OK) or not run
the query (Cancel).
You then change the query so that it uses the form's
textbox as its source
for the parameter:
[Forms]![FormName]![TextBoxName]
--
Ken Snell
<MS ACCESS MVP>
message
I have a form that is populated by way of a macro that
runs, among other things, a parameter query. The problem
is that, if a user presses cancel on one of the
parameters' dialog boxes, the macro halts and reports as
much in a very user-unfriendly way. Users of the
database
panic and come running for advice!
Is there a way I can, like with the macro Set Warnings
setting, turn this off and have the macro just halt
quietly!?!
Thanks,
BJM
.
.