side note, both my tables "taxBands" & "TaxYear" Have identical [Fromdate] & [ToDate] yet when i do the following
Code:
DLookup("TaxRate", "tblTaxBands", "Band = 'TaxBasic' AND [FromDate] = " & format(DLookup("Fromdate", "tblTaxYears", "ID = " & Forms!frm_Income!cmbTaxYear),"mm/dd/yyyy") & " And [ToDate] = " & format(DLookup("ToDate", "tblTaxYears", "ID = " & Forms!frm_Income!cmbTaxYear),"mm/dd/yyyy"))
the answer is null however when i change = to > or >= the correct Answer is displayed
Code:
DLookup("TaxRate", "tblTaxBands", "Band = 'TaxBasic' AND [FromDate] >= " & format(DLookup("Fromdate", "tblTaxYears", "ID = " & Forms!frm_Income!cmbTaxYear),"mm/dd/yyyy") & " And [ToDate] >= " & format(DLookup("ToDate", "tblTaxYears", "ID = " & Forms!frm_Income!cmbTaxYear),"mm/dd/yyyy"))
any idea for this odd occurrence?