Click here to Skip to main content
15,904,823 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralNext Number Pin
digicd114-Feb-08 3:33
digicd114-Feb-08 3:33 
GeneralRe: Next Number Pin
Dave Kreskowiak14-Feb-08 4:11
mveDave Kreskowiak14-Feb-08 4:11 
AnswerRe: Next Number Pin
Guffa14-Feb-08 5:09
Guffa14-Feb-08 5:09 
GeneralRe: Next Number Pin
Steven J Jowett14-Feb-08 10:03
Steven J Jowett14-Feb-08 10:03 
GeneralTOO Many argumnets error Pin
soniasan14-Feb-08 0:43
soniasan14-Feb-08 0:43 
GeneralRe: TOO Many argumnets error Pin
Colin Angus Mackay14-Feb-08 1:08
Colin Angus Mackay14-Feb-08 1:08 
GeneralRe: TOO Many argumnets error Pin
Dave Kreskowiak14-Feb-08 2:30
mveDave Kreskowiak14-Feb-08 2:30 
GeneralRe: TOO Many argumnets error Pin
Vimalsoft(Pty) Ltd14-Feb-08 6:09
professionalVimalsoft(Pty) Ltd14-Feb-08 6:09 
hi man

Number one try to change you Procedure to be like this, you have Complicated things in your Procedure, remember the order of declaration is important in your Procedure

<br />
Create Procedure usp_OutBound_Login_Details<br />
(<br />
@Agent_ID BIGINT , <br />
@Extno VARCHAR(50),<br />
@LoginDateTime AS DATETIME,<br />
@IPAddress VARCHAR(50) = 0 <br />
)<br />
as<br />
Insert into OutBound_Login_Details With(RowLock) (Agent_ID , ExtNo,Login_Time,IPAddress)<br />
Values( @Agent_ID,@Extno,Getdate(),@IPAddress)<br />
SELECT Outbound_Login_ID <br />
FROM Outbound_Login_Details (NOLOCK)<br />
WHERE <br />
Agent_ID = @Agent_ID And<br />
Login_Time = Getdate()<br />
AND Extno = @ExtNo<br />
<br />
<br />


number two your Procedure Expect Parameters and you did not supply them from your Sub, i see that you are supplying values
but where does those values come from? do they fly into the Sub from nowhere ?

number three you have Declared a variable "@IPAddress" and initialized it to 0, and now
your procedure that you are calling from your vb code need that parameter and you did not supply it. Why dont you make an IP address
a default value of "0" and dont include it in your Procedure, see how i got rid of the @LoginDateTime variable, you are wasting resouce's.
And in your Procedure does not tell us that you want to receive an Output from this Procedure, we only see your intensions in
your vb code.You have done a lot of mistakes both in vb and in SQL. i suggest you Google and try step by step to spent time
on your Procedure and after that you will know that you want to receive an output from a Procedure, remember to put
output keyword when you declare a variable to will carry an output for you.In your vb.net code be in mind that you are supposed supply an input
make sure that you show us how you get those inputs after that you must come back and show us what you did.

Dont worry i learnt from Dave and Colin that is why am like this


hope it helps

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


QuestionWhat is causing OleDbException no value given one or more parameter? Pin
JUNEYT13-Feb-08 23:08
JUNEYT13-Feb-08 23:08 
GeneralRe: What is causing OleDbException no value given one or more parameter? Pin
John_Adams13-Feb-08 23:55
John_Adams13-Feb-08 23:55 
GeneralRe: What is causing OleDbException no value given one or more parameter? Pin
JUNEYT14-Feb-08 0:14
JUNEYT14-Feb-08 0:14 
GeneralRe: What is causing OleDbException no value given one or more parameter? Pin
Dave Kreskowiak14-Feb-08 2:25
mveDave Kreskowiak14-Feb-08 2:25 
GeneralTricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
VamsyKrishna13-Feb-08 20:27
VamsyKrishna13-Feb-08 20:27 
GeneralRe: Tricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
Christian Graus14-Feb-08 0:24
protectorChristian Graus14-Feb-08 0:24 
GeneralRe: Tricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
Dave Kreskowiak14-Feb-08 2:20
mveDave Kreskowiak14-Feb-08 2:20 
GeneralRe: Tricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
Christian Graus14-Feb-08 9:36
protectorChristian Graus14-Feb-08 9:36 
GeneralRe: Tricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
Dave Kreskowiak14-Feb-08 9:46
mveDave Kreskowiak14-Feb-08 9:46 
QuestionHow to click on a link ? Pin
SekharOne13-Feb-08 18:33
SekharOne13-Feb-08 18:33 
AnswerRe: How to click on a link ? Pin
Nilesh Hapse13-Feb-08 20:24
Nilesh Hapse13-Feb-08 20:24 
GeneralRe: How to click on a link ? Pin
SekharOne13-Feb-08 22:36
SekharOne13-Feb-08 22:36 
QuestionHow to click on a link Pin
SekharOne13-Feb-08 18:33
SekharOne13-Feb-08 18:33 
AnswerRe: How to click on a link Pin
John_Adams14-Feb-08 0:18
John_Adams14-Feb-08 0:18 
GeneralRe: How to click on a link Pin
SekharOne14-Feb-08 23:41
SekharOne14-Feb-08 23:41 
GeneralWindow Handle Pin
Kumaran21cen13-Feb-08 17:51
Kumaran21cen13-Feb-08 17:51 
GeneralRe: Window Handle Pin
Dave Kreskowiak14-Feb-08 2:13
mveDave Kreskowiak14-Feb-08 2:13 

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.