I have the following piece of code:
could somebody please tell me why it comes up with type mismatch.
thanks
martin
Code:
Dim countme As Variant
Dim namevalue As Variant
countme = "countme"
namevalue = Combo136.Value
LTotal3 = DCount("[Name]", "Absent", "[Name] = #" & namevalue & "#" And "[absentcode] = #" & countme & "#")
could somebody please tell me why it comes up with type mismatch.
thanks
martin