Edit:
MS did not save my changes when creating the field, thus the function is not finding it, which is why its throwing an error. The query designer is annoying as usual.
Solved:
Query was defined by:
Code:
db.QueryDefs("Budget_ByCategory").SQL = "SELECT Budget.Category, Sum([MonthlyAmount]/30*" & DaysBetween & ") AS [Period_Expected] FROM Budget GROUP BY Budget.Category;"
Error line was:
Code:
var = DSum("Period_Expected", "Budget_ByCategory")
Error fixed is:
Code:
var = DSum("[Period_Expected]", "Budget_ByCategory")
Apparently brackets are optional for a field in almost every other part of Access except in functions like dsum - how cool