Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
folumike
Starting Member
24 Posts |
Posted - 2013-05-21 : 21:41:09
|
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 belowDatabase name = jolamic1. CREATE PROCEDURE spInvoice@startdate datetime,@enddate datetime,@itemid nvarchar(60)ASselect itemid, itemname, tdate, invoiceid, rate, amountfrom tblinvoicewhere tdate between @startdate and @enddateand itemid = @itemid2. the vb forms => (a)frmSearch has this controlsTextBoxes: txtItemIDCommandButton: cmdPreviewDatePicker: dtpStartDate, dtpEndDate, (b) frmPreviewThe 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.THANKS IN ADVANCE |
|
russell
Pyro-ma-ni-yak
5072 Posts |
Posted - 2013-05-22 : 12:11:47
|
http://www.w3schools.com/ado/ado_ref_command.asp |
|
|
|
|
|
|
|