Hi,
can you show us what is your database and what is the SQL code that your're trying to execute. Obviusly you're missing something but we can't just guess what is it. Also you can upload your project somewhere, so we could see what you are exactly doing.

Dimiter.