I'm trying to use the DCount function to count the number or records in a table that have a specific value in a field. I want to get the value from a combo box on another form. The answer I'm getting is a count of all the records in the table, not just a count of the records of the ones matching the value in the combo box. If I hard code a value in my expression it returns the correct count, however when I try to get the value from a combo box the count is all the records in my table.
Here is the syntax of what I'm using.
=DCount("[ID]","[Spending]","[Forms]![Navigation]![NavVendor]")
Any Ideas??