A
Alex
I have a Query1 with the following fields:
ProductID, Sum([qty]* [usage]) As StandardUsage, Day
where Day >=#SomeDate1# And Day<=#SomeDate2#
and
Query2 - Sum(Query1.[StandardUsage]) As StandardKg giving
as a result a one number.
The queries are working Ok.
But, when I'm doing
Set rst = dbs.OpenRecordset("SELECT StandardKg FROM
Query2").
I'm getting an error "Too few parameters. Required two."
It happens even if I'm doing just
Set rst = dbs.OpenRecordset("Query2")
Could anybody help with it?
Thanks
ProductID, Sum([qty]* [usage]) As StandardUsage, Day
where Day >=#SomeDate1# And Day<=#SomeDate2#
and
Query2 - Sum(Query1.[StandardUsage]) As StandardKg giving
as a result a one number.
The queries are working Ok.
But, when I'm doing
Set rst = dbs.OpenRecordset("SELECT StandardKg FROM
Query2").
I'm getting an error "Too few parameters. Required two."
It happens even if I'm doing just
Set rst = dbs.OpenRecordset("Query2")
Could anybody help with it?
Thanks