R
Rene
I have made a 2nd query in design view and have the result I wanted but...
I would like to use this 2nd query as recourdsource for a form in vba.
1st qryTotal: SELECT tblInventory.ID, Sum(tblInventory.Quantity) AS
SumOfQuantity...
2nd qryShortage: SELECT qryTotal.SumOfQuantity, tblStandard.Required,
[Required]-[SumOfQuantity] AS [Shortage]...
Is it possible not to use a saved query and use the SQL(=qryShortage) as
recourdsource in vba?
When I have only one SQL it is no problem but I do not know how to to it
with the second SQL based on the first.
How do I refer my 2nd SQL to my 1st SQL?
Now I want something like:
me.recourdsource=qryShortage
Rene
I would like to use this 2nd query as recourdsource for a form in vba.
1st qryTotal: SELECT tblInventory.ID, Sum(tblInventory.Quantity) AS
SumOfQuantity...
2nd qryShortage: SELECT qryTotal.SumOfQuantity, tblStandard.Required,
[Required]-[SumOfQuantity] AS [Shortage]...
Is it possible not to use a saved query and use the SQL(=qryShortage) as
recourdsource in vba?
When I have only one SQL it is no problem but I do not know how to to it
with the second SQL based on the first.
How do I refer my 2nd SQL to my 1st SQL?
Now I want something like:
me.recourdsource=qryShortage
Rene