If have trouble with my Dlook upcode and I am stuck
Invoicelabour = Yes/No field
ContractNr = Text field
ServicecontractNr = text field
When I run an after update event I get the runtype error type mismatch on the chargelabour = … line
Dim Chargelabour As Boolean
Chargelabour = DLookup("[InvoiceLabor]", "[TblContract]", "[TblContract].[ContractNr] =" & Forms![FrmServiceJobDetails]![servicecontractNr])
If Chargelabour = True Then Invoice.Value = True
Any idea???
Invoicelabour = Yes/No field
ContractNr = Text field
ServicecontractNr = text field
When I run an after update event I get the runtype error type mismatch on the chargelabour = … line
Dim Chargelabour As Boolean
Chargelabour = DLookup("[InvoiceLabor]", "[TblContract]", "[TblContract].[ContractNr] =" & Forms![FrmServiceJobDetails]![servicecontractNr])
If Chargelabour = True Then Invoice.Value = True
Any idea???