HI All,
Need some assistance with a dlookup code…..I previously had this function which worked out to my needs.....
Combo27 = DLookup("Desc", "[HPEMProblemCodes]", "TaskCode= '" & [Problemcode] & "'")
Now I am trying to add a second criteria to the dlookup where temp1 in my form must also match category in the HPEMProblemCodes table
I came up with this formula but seem to have type mismatch error and I simply can’t figure it out:
Combo27 = DLookup("Desc", "[HPEMProblemCodes]", "TaskCode= '" & [Problemcode] & "" And Temp1 = " & [Category] '")
Taskcode, Description, and Category in the HPEMProblemCodes table are formatted as short text.
Taskcode could be either 3 numbers or 3 letter combinations
Description is a worded description of the problem
Category is a short text
Please assist.
Need some assistance with a dlookup code…..I previously had this function which worked out to my needs.....
Combo27 = DLookup("Desc", "[HPEMProblemCodes]", "TaskCode= '" & [Problemcode] & "'")
Now I am trying to add a second criteria to the dlookup where temp1 in my form must also match category in the HPEMProblemCodes table
I came up with this formula but seem to have type mismatch error and I simply can’t figure it out:
Combo27 = DLookup("Desc", "[HPEMProblemCodes]", "TaskCode= '" & [Problemcode] & "" And Temp1 = " & [Category] '")
Taskcode, Description, and Category in the HPEMProblemCodes table are formatted as short text.
Taskcode could be either 3 numbers or 3 letter combinations
Description is a worded description of the problem
Category is a short text
Please assist.