If your query (your SQL structure) is returning data then that should be OK. As for "DoCmd.OpenQuery" that is the code to run a query. You can send the db but there is no guarantee that I can solve your problem, but I will take a look. Be sure and give the pertinent details so I will understand...