Atomic Shrimp
06-30-2009, 05:47 AM
I've got a form (frmMain) with a combo on it (Combo33) - the combo is looking up billing periods from a tblBillingPeriods (bound column is BillingPeriodID).
I have a query that includes tblBillingPeriods (joined to a transaction history table) and the column BillingPeriodID. The criterion applied to the BillingPeriodID column is =[Forms]![frmMain]![Combo33]
So the query should return rows where the billing period matches the one selected in the combo.
But it doesn't - it comes back empty, however, if I type ? [Forms]![frmMain]![Combo33] in the VBA immediate window, it returns 44
If I put = 44 as the criterion under BillingPeriodID in my query, it works.
What is going on?
I have a query that includes tblBillingPeriods (joined to a transaction history table) and the column BillingPeriodID. The criterion applied to the BillingPeriodID column is =[Forms]![frmMain]![Combo33]
So the query should return rows where the billing period matches the one selected in the combo.
But it doesn't - it comes back empty, however, if I type ? [Forms]![frmMain]![Combo33] in the VBA immediate window, it returns 44
If I put = 44 as the criterion under BillingPeriodID in my query, it works.
What is going on?