know I can look in two tables with dlookup
timevalproc-The variable to assign the dlookup function in vba
tblEmployees
tblProcedure
[Haircut] or [Eyebrows] = [txt ID]
and the time for each of the procedures which is on tblEmployees:
I have this code as an example, this is what I tried, it's close, but I can't find where is the syntax error::banghead:
timevalproc = DLookup("[Haircut Time]", "tblEmployee", "[Employee ID] = '" & [txtID] '" & Dlookup("[Procedure Name],"tblProcedure", "[Procedure Name]= '" & [cboProcedure] & "'") & "'")
timevalproc-The variable to assign the dlookup function in vba
tblEmployees
tblProcedure
[Haircut] or [Eyebrows] = [txt ID]
and the time for each of the procedures which is on tblEmployees:
I have this code as an example, this is what I tried, it's close, but I can't find where is the syntax error::banghead:
timevalproc = DLookup("[Haircut Time]", "tblEmployee", "[Employee ID] = '" & [txtID] '" & Dlookup("[Procedure Name],"tblProcedure", "[Procedure Name]= '" & [cboProcedure] & "'") & "'")