R
Rick
OK, Strange problem here.
I have a bunch of reports that are actually letters. On
the close of the report I offer the option to update a
field in every record.
The way that I do this, and it might not be the BEST way
is that I have a query that I call and update vie code.
I have many modifications of this report/query combination
all of which work fine.
I am trying to make a NEW variation of the above only to
suddenly receive an error that makes no sense (to me).
The error indicates that I have to few parameters, and
that I need one. Strangely only in this instance do I get
the error.
Set dbs = currentDB
Set rst = dbs.OpenRecordset("MyQueryNameHere") 'Where the
error occures
The only thing that I could imagine is causing the problem
is that this query looks to a form for one of its
selection criteria. This only seems to be a problem in
the module, if I break the code at the point of this error
and manually run the query it returns the desired record
set!
I have at least 8 other instances where this works! I
can't figure out the difference otherwise!
Any idea what else could be causing this??
Rick
I have a bunch of reports that are actually letters. On
the close of the report I offer the option to update a
field in every record.
The way that I do this, and it might not be the BEST way
is that I have a query that I call and update vie code.
I have many modifications of this report/query combination
all of which work fine.
I am trying to make a NEW variation of the above only to
suddenly receive an error that makes no sense (to me).
The error indicates that I have to few parameters, and
that I need one. Strangely only in this instance do I get
the error.
Set dbs = currentDB
Set rst = dbs.OpenRecordset("MyQueryNameHere") 'Where the
error occures
The only thing that I could imagine is causing the problem
is that this query looks to a form for one of its
selection criteria. This only seems to be a problem in
the module, if I break the code at the point of this error
and manually run the query it returns the desired record
set!
I have at least 8 other instances where this works! I
can't figure out the difference otherwise!
Any idea what else could be causing this??
Rick