X
xRoachx
What does the following line of code do?
CurrentDb.QueryDefs("Assignment Sheet Query").Parameters
("App Type").Value
Does it show the value of the parameter for the "App Type"
field, or does it allow me to change the value of the
parameter? Or does it do both or nothing?
I used a similar line of code to set the default value of
a table:
CurrentDb.TableDefs("Assignment Sheet").Fields("App
Type").DefaultValue
What I am trying to do is update the parameter prior to
running the query or at run-time so the user doesn't get
the parameter input box. The parameter is based on user
input. However, when I try to use the code for the
QueryDef I get the error "Item not found in the
collection." I've verified the spelling of the query and
the field name. Thanks.
CurrentDb.QueryDefs("Assignment Sheet Query").Parameters
("App Type").Value
Does it show the value of the parameter for the "App Type"
field, or does it allow me to change the value of the
parameter? Or does it do both or nothing?
I used a similar line of code to set the default value of
a table:
CurrentDb.TableDefs("Assignment Sheet").Fields("App
Type").DefaultValue
What I am trying to do is update the parameter prior to
running the query or at run-time so the user doesn't get
the parameter input box. The parameter is based on user
input. However, when I try to use the code for the
QueryDef I get the error "Item not found in the
collection." I've verified the spelling of the query and
the field name. Thanks.