maddmurph, the .MoveFirst is raising an error because your recordset is empty. You should check the .EOF and/or .BOF properties of your recordset before you do anything with it. If .EOF = True right after creating the recordset, then your query returned no records.
As for Jackass Joe's comment, Query Analyzer is a SQL Server client tool that allows you to run queries against SQL Server databases. I don't know if you're using SQL Server as your backend, but the idea is to spit out the query string you're submitting and try running it somwhere outside your code. That usually points out syntax errors quite quickly.
As for Jackass Joe's comment, Query Analyzer is a SQL Server client tool that allows you to run queries against SQL Server databases. I don't know if you're using SQL Server as your backend, but the idea is to spit out the query string you're submitting and try running it somwhere outside your code. That usually points out syntax errors quite quickly.