G
Guest
Hi all
I am trying to use the dlookup function and get a type mismatch error. Can
anyone tell me why. The fields in the tables are either double or text
(bracket). Code is:
Dim txtBracket As String
Dim intFuelAmt As Double
Dim intVAT As Double
txtBracket = Me![cboVehicle].Column(3)
intFuelAmt = Me![FuelCost]
intVAT = DLookup("[Amount]", "tblFuel", "FuelCost = " & intFuelAmt
And "Bracket = " & txtBracket)
Thanks in advance for any help.
Sue
I am trying to use the dlookup function and get a type mismatch error. Can
anyone tell me why. The fields in the tables are either double or text
(bracket). Code is:
Dim txtBracket As String
Dim intFuelAmt As Double
Dim intVAT As Double
txtBracket = Me![cboVehicle].Column(3)
intFuelAmt = Me![FuelCost]
intVAT = DLookup("[Amount]", "tblFuel", "FuelCost = " & intFuelAmt
And "Bracket = " & txtBracket)
Thanks in advance for any help.
Sue