I am a beginner programmer in VB. I have a form from which the user can query the database in Access. I am using DAO. I also want to print a report but I don't know how to pass the query from VB form to Crystal Report Designer Component or Microsoft Data Report.

If anybody has sample code or knows site where I can get help , please let me know.
My email address is
[email protected]

Thanks in advance.