Hi There, i am not expert in access but trying to do something with Dlookup but not sure getting error with
my requirement is to get service charges if i am entering this two text and combo box value by using Dlookup . kindly assist.
Dim val As Double
Dim sert As String
Dim engp As Double
sert = Me.Service_Type.Value
engp = Me.Engine_Power.Value
val = DLookup("Ser_charge", "Service_Charges", "Service_Type='sert' AND Engine_power = 'engp'")
from table Service_charges
my requirement is to get service charges if i am entering this two text and combo box value by using Dlookup . kindly assist.
Dim val As Double
Dim sert As String
Dim engp As Double
sert = Me.Service_Type.Value
engp = Me.Engine_Power.Value
val = DLookup("Ser_charge", "Service_Charges", "Service_Type='sert' AND Engine_power = 'engp'")
from table Service_charges