Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 Development Tools
 Other Development Tools
 vb6 and crystal report
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

24 Posts

Posted - 05/21/2013 :  21:41:09  Show Profile  Reply with Quote
My company have develops a software that uses vb6,mssql2000 and crystal reports 10.
I want to call a stored procedure(in ms sql 2000) with parameters through vb6. the result will be displayed in crystal reports, and the parameters value should be supplied in the form.
Note: the crystal report is desined and located inside the vb.

see the process below
Database name = jolamic
@startdate datetime,
@enddate datetime,
@itemid nvarchar(60)
select itemid, itemname, tdate, invoiceid, rate, amount
from tblinvoice
where tdate between @startdate and @enddate
and itemid = @itemid

2. the vb forms => (a)frmSearch has this controls
TextBoxes: txtItemID
CommandButton: cmdPreview
DatePicker: dtpStartDate, dtpEndDate,

(b) frmPreview

The question is how the i write the vb code that will call the procedure(spInvoice) from the datebase,
supply the parameters(from frmSearch),
display the report,
and convert the date format to US format if it is in UK.



5072 Posts

Posted - 05/22/2013 :  12:11:47  Show Profile  Visit russell's Homepage  Reply with Quote
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000