LeonelSanchezJr
Programmer
I am creating a record set with the following code and then I want to run a Crystal Report right afterward and have Crystal Reports use that record set. What code do I need to implement in between the following to parargraphs of code?
********************************************************
* code to create object and query sql
oAdo = CreateObject('AdoDb.Connection')
oAdor = CreateObject('Ador.Recordset')
oAdo.ConnectionString = [Provider=SQLoledb;data source= EGLStalDevSQL01;User ID =le;Password=;Connect Timeout=3]
oADO.Open
oAdo.DefaultDatabase = 'Talon_Dot_net'
Ador = oAdo.Execute("exec Hawb_SelectHawb 'TESTHAWBGES001'"
************************************************************
* code to preview Crystal report
oCRApp = createobject("crystal.crpe.application"
oRep = oCRApp.OpenReport("d:\leo\HAWB Air Waybill.rpt"
oRep.Preview
wait
***********************************************************
Thanks
********************************************************
* code to create object and query sql
oAdo = CreateObject('AdoDb.Connection')
oAdor = CreateObject('Ador.Recordset')
oAdo.ConnectionString = [Provider=SQLoledb;data source= EGLStalDevSQL01;User ID =le;Password=;Connect Timeout=3]
oADO.Open
oAdo.DefaultDatabase = 'Talon_Dot_net'
Ador = oAdo.Execute("exec Hawb_SelectHawb 'TESTHAWBGES001'"
************************************************************
* code to preview Crystal report
oCRApp = createobject("crystal.crpe.application"
oRep = oCRApp.OpenReport("d:\leo\HAWB Air Waybill.rpt"
oRep.Preview
wait
***********************************************************
Thanks