You need to make sure that there is a valid value in pname, and that it is enclosed in single quotes e.g. 'Smith'
Unless you are joining tables, you do not need to specify the table name, so your SQL statement could read:
strSQL ="SELECT * FROM add where prjname='" & pname & "';"
It is probably also worth checking whether "add" is acceptable as a table name - it might be a reserved word.
Pat
-------------------
System 3 2000 Limited
www.system3-2000.co.uk