You're quite welcome. Glad I could help.
Just as a general FYI, when writing criteria for boolean (true/false), numbers, strings, and dates, the syntax requires delimiters for strings and dates.
Boolean & numbers use nothing.
Code:
x = DLookUp("[MyField]", "MyTable", "[OtherField] = " & Me.txtTextbox
Strings use apostrophes (or "single quotes").
Code:
x = DLookUp("[MyField]", "MyTable", "[OtherField] = '" & Me.txtTextbox & "'"
Dates use a pound sign (or number sign or cross-hatch)
Code:
x = DLookUp("[MyField]", "MyTable", "[OtherField] = #" & Me.txtTextbox & "#"