B
Bill Nguyen
What's the VB syntax to run the CR report using the following SP?
I use CrystalreportViewer and ReportDocument.
Thanks
Bill
Here's the SP in SQLserver 2K:
CREATE proc mysp_ReportSubmission
@salesdate as varchar(20),
@inflag as bit
AS
if @inflag = 0
select * from station where inactive = 0
and stationid not in
(select stationid from transactions
where transdate = @salesdate)
else
select * from station where inactive = 0
and stationid in
(select stationid from transactions
where transdate = @salesdate)
GO
I use CrystalreportViewer and ReportDocument.
Thanks
Bill
Here's the SP in SQLserver 2K:
CREATE proc mysp_ReportSubmission
@salesdate as varchar(20),
@inflag as bit
AS
if @inflag = 0
select * from station where inactive = 0
and stationid not in
(select stationid from transactions
where transdate = @salesdate)
else
select * from station where inactive = 0
and stationid in
(select stationid from transactions
where transdate = @salesdate)
GO