I had develop a program using VB6 with Crystal Report 8.5 as reporting tools. When I run this piece of code on end-user's platform, I will get error when printing the report. The message appears to be 'Cannot open SQL Server'. But when I open the report designer, and I go to 'Database->Verify Database', then it works, it requires the connection to ODBC. Is there a way to by pass this step? Avoid the pop up error message?

Pls advise.

Thanks.