Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting / Using Crystal 10 report in Access form

Status
Not open for further replies.

skalina

Technical User
May 26, 2007
4
US
I'm able to do this with earlier versions of Crystal - but am having trouble with Crystal 9 and 10...

I've inserted the Crystal ActiveX report Viewer Control 10 Object - but not sure what to do with that exactly...For now, i've renamed it as CR.

Then i added a button and changed the vb code to as follows:


Private Sub Command3_Click()
CR.Connect = "Provider=SQLOLEDB.1;Server=LSCSK;Database=TWO;UID=sa;PWD=truman"
CR.ReportFileName = "c:\VBcrTest.rpt"
CR.Action = 1
End Sub

Doesn't seem to be working -- anyone have any suggestions?

Thanks

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top