R
Robert_DubYa
I am having trouble creating an expression in the following query:
SELECT [tblCitemRunQty-Step5-CItemsOnly].Child,
[tblCitemRunQty-Step5-CItemsOnly].Month,
[tblCitemRunQty-Step5-CItemsOnly].Branch,
DCount("Month","tblCitemRunQty-Step5-CItemsOnly","[Branch] = " & [Branch]) AS
Expr1
FROM [tblCitemRunQty-Step5-CItemsOnly];
the problem is in my Dcount statement:
DCount("Month","tblCitemRunQty-Step5-CItemsOnly","[Branch] = " &
'[Branch]').
I do not use this function much so I must refresh my self each time and this
time I am failing.
I am trying to make this statement dynamic in the query. If I use a static
value I get the result I would expect
example:
DCount("Month","tblCitemRunQty-Step5-CItemsOnly","[Branch] = 'myvalue'"
any clue on what I am doing wrong?
thanks as always.
SELECT [tblCitemRunQty-Step5-CItemsOnly].Child,
[tblCitemRunQty-Step5-CItemsOnly].Month,
[tblCitemRunQty-Step5-CItemsOnly].Branch,
DCount("Month","tblCitemRunQty-Step5-CItemsOnly","[Branch] = " & [Branch]) AS
Expr1
FROM [tblCitemRunQty-Step5-CItemsOnly];
the problem is in my Dcount statement:
DCount("Month","tblCitemRunQty-Step5-CItemsOnly","[Branch] = " &
'[Branch]').
I do not use this function much so I must refresh my self each time and this
time I am failing.
I am trying to make this statement dynamic in the query. If I use a static
value I get the result I would expect
example:
DCount("Month","tblCitemRunQty-Step5-CItemsOnly","[Branch] = 'myvalue'"
any clue on what I am doing wrong?
thanks as always.