Hi All,
This is driving me nuts as it should be simple to do but I must be missing the point somewhere along the way.
I have a form with some textboxes and I want to put a dcount in them depending on a couple of criteria.
In VBA on form load I have written the following code:
Staging2 is my table,
Queue is my field I want to count from
Where am I going wrong please?
This is driving me nuts as it should be simple to do but I must be missing the point somewhere along the way.
I have a form with some textboxes and I want to put a dcount in them depending on a couple of criteria.
In VBA on form load I have written the following code:
Staging2 is my table,
Queue is my field I want to count from
Code:
Text5 = DCount("Queue", "Staging2", "Queue = 'PS PO WF'")
Code:
Text7 = DCount("Queue", "Staging2", "Queue = 'PS Corp'")
Where am I going wrong please?