I am not sure what I am doing wrong. This form after updating populates a series of fields from table data and that works fine. But I want the tax rate to be set to the default value of another table titled "Tbl_salesTaxRate". This table has 2 fields, the tax rate data and a checkbox so the user can set what tax rate should be the default.
I have also tried setting the dlookup to the taxRate field's default value property, but that was a no go as well. Any help here would be greatly appreciated.
I should also mention that I made sure that I have a value set to True in the Tbl_salesTaxRate table.
Private Sub Combo31_AfterUpdate()
Me.UnitPrice = Me.Combo31.Column(2)
Me.Taxable = Me.Combo31.Column(3)
Me.Description = Me.Combo31.Column(1)
Me.Category = Me.Combo31.Column(4)
If [Taxable] = True Then
Me.TaxRate = DLookup("SalesTaxRate", "Tbl_SalesTaxRate", "DefaultValue=TRUE")
End If
DoCmd.GoToRecord , , acNewRec
End Sub