sadly, i did, and i kept getting errors on the subforms...something about data type not matching.
it's about time to get someone standing over my shoulder :(
Ok, when you compare or translate data, DataTypes have to match. When you create a field in a table you have to choose the data type. You also have to be aware that some datatypes have subtypes. For example a Number datatype may be Long Integer, Integer,
Double, Single etc. Also some datatypes have underlying types. For example a Yes/No field is really an Integer and a Autonumber is really a Long Integer.
So when comparing types you may have to delimit them. If you are comparing a text datatype you have to wrap the text in single quotes:
Ex: "[Address] = '" & Me.txtAddress & "'"
Dates need to be wrapped in the # sign
Ex: "[DOB] = #" & Me.txtDOB & "#"
And numbers need no wrapper
Ex: "[Quantity] = " & Me.txtQty
Hope this helps, Scott<> P.S. Please post a response to let us know whether our answer helped or not. Microsoft Access MVP 2010 Blog: http://scottgem.wordpress.com Author: Microsoft Office Access 2007 VBA Technical Editor for: Special Edition Using Microsoft
Access 2007 and Access 2007 Forms, Reports and Queries