I desperately need help with reporting..... 
Author Message
 I desperately need help with reporting.....

Can anybody please help me... i really need to be able to do the following
two things but i am at a total loss at to how to do it or where to find out.
I am using VB5.

1) I need to be able to create a Crystal Reports report using the current
recordset, then view the report from within VB5.

2) I need to be able to view an Access 97 report from within VB5.

If anybody can help, i will be extremely thankful.



Sat, 21 Jun 2003 15:44:06 GMT  
 I desperately need help with reporting.....
1) Crystal Reports V8.0 will produce a report from an ADO recorodset.  I
don't think the free version packaged with VB5 has that capibility.
2) I was able to run an Access97 report via VB.  I abandoned the effort
because Access needed to be installed on the client machine.  Simply
ncluding the Access library ref. was not sufficient.
Here's the code:
' run Access report for current SensRef
Public Sub RunRpt()
  Dim oAccess As New Access.Application
  Dim strSensRef As String, strWhere As String
  oAccess.OpenCurrentDatabase mstrDataBase                 ' module level,
.MDB path & name
  strSensRef = oRSet![tblSensor.SensRef]                          ' module
level ADO recordset object
  strWhere = "tblSensor.SensRef = '" & strSensRef & "'"     ' watch single
quotes
  ' qrySensor is Access Select query, rptSensor is Access report built on
qrySensor
  oAccess.DoCmd.OpenReport "rptSensor", acViewNormal, "qrySensor", strWhere
  oAccess.CloseCurrentDatabase
  oAccess.Quit acQuitSaveNone
  Set oAccess = Nothing
End Sub
--
John Goodfellow
irtf'nm
use 'microtouch' in address to email


Quote:
> Can anybody please help me... i really need to be able to do the following
> two things but i am at a total loss at to how to do it or where to find
out.
> I am using VB5.

> 1) I need to be able to create a Crystal Reports report using the current
> recordset, then view the report from within VB5.

> 2) I need to be able to view an Access 97 report from within VB5.

> If anybody can help, i will be extremely thankful.



Sat, 21 Jun 2003 22:51:36 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Desperately Need HELP!!!!-Crystal Report-Logon Fail - Can anyone even give me a lead

2. Printing of Reports with VB, i need some help desperately

3. desperately need help with automation error

4. desperately need help with RunCode in a macro

5. Distribution List Woes...Help Desperately Needed!

6. Distribution List Woes...Help Desperately Needed

7. Desperately need some help!

8. Desperately need help creating timeslice chart

9. Deployment Help Desperately Needed

10. DESPERATELY NEED HELP - DataReport

11. DESPERATELY NEED HELP

12. Desperately need help!!!

 

 
Powered by phpBB® Forum Software