Does anyone know why I would get a "data type mismatch in criteria expression" error from the dlookup statement below? Macyear is a text field in the underlying table that the query "artwrk macnum" is based on and it is also a text field on the open form. Any ideas?<br><br>Private Sub Command55_Click()<br>Dim varx As Variant<br>varx = DLookup("[maxofmacextension]", "artwrk macnum", "[macyear] ="& me![macyear])<br>End Sub<br><br>Thanks! <p>jgarnick<br><a href=mailto:jgarnick@aol.com>jgarnick@aol.com</a><br><a href= > </a><br>