G
Guest
Can anyone help with a criteria problem
Using :
Dim curX As Currency
curX = DSum("[BudgetTotal]", "Tblbudgets", "[BudgetId] = " & Me.BudgetFromId)
Which gives me the result I need.
I need to do add another criteria which is causing the problem.
What I have tried is :
curX = DSum("[BudgetTotal]", "Tblbudgets", "[BudgetId] = " & Me.BudgetFromId
And “[budgetperiodID] = “ & Me.budgetperiodID)
but this does not work and comes back with a ‘type mismatch’ error.
Using :
Dim curX As Currency
curX = DSum("[BudgetTotal]", "Tblbudgets", "[BudgetId] = " & Me.BudgetFromId)
Which gives me the result I need.
I need to do add another criteria which is causing the problem.
What I have tried is :
curX = DSum("[BudgetTotal]", "Tblbudgets", "[BudgetId] = " & Me.BudgetFromId
And “[budgetperiodID] = “ & Me.budgetperiodID)
but this does not work and comes back with a ‘type mismatch’ error.