Hi, I have produced a program in vb5, I have designed a report in cr4.6. i want to click a botton on a form in the program and view the report in a view window not in the cr4.6 editor.

I am using the code at the end of this post to try to call the report however when it tries to start I get a 20536 - Incorrect log on procedures.
My questions are a what have i done wrong?
If fixed will this open the report in the viewer window?


Additional information:
im running win xp
i have crystal report control 4.6 selected in the project components menu
I have put a cr control on the form
i have crystal report control 4.6 selected in the references menu

I have searched everywhere but no luck, please please help this is for a project for work and it is driving me crazy!
Thanks.


___________________________

Private Sub Command1_Click()

CrystalReport1.DataFiles(0) = sDocLoc & "Offers.mdb"
CrystalReport1.ReportFileName = sDocLoc & "monthlyserviceskpi.rpt"
CrystalReport1.Destination = crptToWindow
CrystalReport1.WindowState = crptMaximized
CrystalReport1.Action = 1

End Sub