Click here to Skip to main content
15,896,269 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionwhat does IPEndPoint(IPAddress.Any, 0) means [modified] Pin
saadmechiche26-Jul-07 23:00
saadmechiche26-Jul-07 23:00 
AnswerRe: what does IPEndPoint(IPAddress.Any, 0) means Pin
Dave Kreskowiak27-Jul-07 6:44
mveDave Kreskowiak27-Jul-07 6:44 
Questionretaining tab index Pin
hepsy.i26-Jul-07 22:50
hepsy.i26-Jul-07 22:50 
AnswerRe: retaining tab index Pin
Dave Kreskowiak27-Jul-07 6:39
mveDave Kreskowiak27-Jul-07 6:39 
QuestionPlease help me in hurry! Pin
chansothea26-Jul-07 22:27
chansothea26-Jul-07 22:27 
AnswerRe: Please help me in hurry! Pin
Christian Graus26-Jul-07 23:09
protectorChristian Graus26-Jul-07 23:09 
GeneralRe: Please help me in hurry! Pin
Dave Kreskowiak27-Jul-07 1:49
mveDave Kreskowiak27-Jul-07 1:49 
QuestionStored Procedures - Recordset Pin
Werries26-Jul-07 22:22
Werries26-Jul-07 22:22 
Hi there,

In the past I used SQL commands to retrieve recordsets from my DB. Now I moved those SQL commands to stored procedures in my DB to retrieve the recordsets. The main issue I have is that I cannot set the absolute position etc on that recordset from my stored procedure. Here is what I did in the past:

Dim rsRecord            As Recordset<br />
<br />
Set rsRecord = New Recordset<br />
<br />
rsRecord.Open "SELECT * FROM Customers", cnDatabase, adOpenKeyset<br />

If I open the recordset like the sample above I can get the rsRecordset.RecordCount, but if I use a stored procedure to fetch the same data into a recordset the rsRecordset.RecordCount property returns -1

Dim cmCommand     As ADODB.Command<br />
Set cmCommand = New ADODB.Command<br />
<br />
Set cmCommand.ActiveConnection = cnDatabase<br />
cmCommand.CommandType = adCmdStoredProc<br />
cmCommand.CommandText = " [dbo].[FetchCustomers]"<br />
Set rsRecord =  cmCommand.Execute<br />

rsRecordset.RecordCount = -1

How can I use a stored procedure to scroll through a recordset? Confused | :confused:

Thanks, Werries


A programmer's life is good... or is it?? Ek dink nie so nie!

AnswerRe: Stored Procedures - Recordset [modified] Pin
andyharman27-Jul-07 1:27
professionalandyharman27-Jul-07 1:27 
GeneralRe: Stored Procedures - Recordset Pin
Werries27-Jul-07 2:07
Werries27-Jul-07 2:07 
AnswerRe: Stored Procedures - Recordset Pin
andyharman27-Jul-07 3:36
professionalandyharman27-Jul-07 3:36 
GeneralRe: Stored Procedures - Recordset Pin
Werries27-Jul-07 5:08
Werries27-Jul-07 5:08 
GeneralRe: Stored Procedures - Recordset Pin
andyharman27-Jul-07 6:11
professionalandyharman27-Jul-07 6:11 
QuestionMigration Of VB6 app to Vb .NET Pin
birajendu26-Jul-07 21:37
birajendu26-Jul-07 21:37 
AnswerRe: Migration Of VB6 app to Vb .NET Pin
Christian Graus26-Jul-07 21:43
protectorChristian Graus26-Jul-07 21:43 
QuestionCrystal Report Porblem Pin
help as an alias26-Jul-07 19:47
help as an alias26-Jul-07 19:47 
AnswerRe: Crystal Report Porblem Pin
Paul Conrad26-Jul-07 20:19
professionalPaul Conrad26-Jul-07 20:19 
GeneralRe: Crystal Report Porblem Pin
help as an alias26-Jul-07 20:24
help as an alias26-Jul-07 20:24 
GeneralRe: Crystal Report Porblem Pin
Paul Conrad26-Jul-07 20:31
professionalPaul Conrad26-Jul-07 20:31 
GeneralRe: Crystal Report Porblem Pin
help as an alias26-Jul-07 20:35
help as an alias26-Jul-07 20:35 
GeneralRe: Crystal Report Porblem Pin
Paul Conrad26-Jul-07 20:37
professionalPaul Conrad26-Jul-07 20:37 
GeneralRe: Crystal Report Porblem Pin
help as an alias26-Jul-07 20:40
help as an alias26-Jul-07 20:40 
GeneralRe: Crystal Report Porblem Pin
Christian Graus26-Jul-07 20:38
protectorChristian Graus26-Jul-07 20:38 
GeneralRe: Crystal Report Porblem Pin
Paul Conrad26-Jul-07 20:35
professionalPaul Conrad26-Jul-07 20:35 
AnswerSTOP !!!! Pin
Christian Graus26-Jul-07 20:21
protectorChristian Graus26-Jul-07 20:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.