Click here to Skip to main content
15,910,787 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: copy region of picture box... Pin
schweet_nectur21-Sep-05 12:23
schweet_nectur21-Sep-05 12:23 
QuestionWhats wrong with this....... Pin
daviiie19-Sep-05 8:39
daviiie19-Sep-05 8:39 
AnswerRe: Whats wrong with this....... Pin
KaptinKrunch19-Sep-05 8:42
KaptinKrunch19-Sep-05 8:42 
AnswerRe: Whats wrong with this....... Pin
Dave Kreskowiak19-Sep-05 9:17
mveDave Kreskowiak19-Sep-05 9:17 
AnswerRe: Whats wrong with this....... Pin
Christian Graus19-Sep-05 11:47
protectorChristian Graus19-Sep-05 11:47 
AnswerRe: Whats wrong with this....... Pin
Gopi.V19-Sep-05 22:23
Gopi.V19-Sep-05 22:23 
QuestionCommon Dialogs and Office 2003 Pin
john john mackey19-Sep-05 7:35
john john mackey19-Sep-05 7:35 
QuestionProcedure or function UpdateAllRecords has too many arguments specified. Pin
mcgann19-Sep-05 6:10
mcgann19-Sep-05 6:10 
I got this message after executing a stored procedure under SQL server.

Procedure or function UpdateAllRecords has too many arguments specified.

the SQL code is:

CREATE PROCEDURE dbo.UpdateAllRecords

@form_id int,
@username varchar,
@site varchar,
@division varchar,
@branch varchar,
@activity varchar,
@room varchar,
@location varchar,
@hazard varchar,
@description varchar,
@rating varchar,
@probability varchar,
@level varchar,
@ventilation varchar,
@laboratory varchar,
@clothing varchar,
@gloves varchar,
@eye varchar,
@respirator varchar,
@footwear varchar,
@info varchar,
@person varchar,
@summary varchar,
@discussed varchar,
@project varchar,
@manager varchar

AS

UPDATE form

SET
activity = @activity,
room = @room,
location = @location,
hazard = @hazard,
description = @description,
risk = @rating,
probability = @probability,
levels = @level,
ventilation = @ventilation,
laboratory = @laboratory,
clothing = @clothing,
gloves = @gloves,
eye = @eye,
respirator = @respirator,
footwear = @footwear,
info = @info,
persons = @person,
summary = @summary,
discussed = @discussed,
lab_manager = @manager,
pro_manager = @project

WHERE

form_id = @form_id
GO

And the page code is:

conn.Open()
Try
Dim command As New SqlCommand("UpdateAllRecords", conn)
command.CommandType = CommandType.StoredProcedure

command.Parameters.Add("@form_id", Session("form_id"))
command.Parameters.Add("@username", Session("username"))
command.Parameters.Add("@site", Session("site"))
command.Parameters.Add("@division", Session("division"))
command.Parameters.Add("@branch", Session("branch"))
command.Parameters.Add("@activity", Session("activity"))
command.Parameters.Add("@room", Session("room"))
command.Parameters.Add("@location", Session("location"))
command.Parameters.Add("@hazard", Session("hazard"))
command.Parameters.Add("@description", Session("description"))
command.Parameters.Add("@rating", Session("rating"))
command.Parameters.Add("@probability", Session("probability"))
command.Parameters.Add("@level", Session("level"))
command.Parameters.Add("@ventilation", Session("ventilation"))
command.Parameters.Add("@laboratory", Session("laboratory"))
command.Parameters.Add("@clothing", Session("clothing"))
command.Parameters.Add("@gloves", Session("gloves"))
command.Parameters.Add("@eye", Session("eye"))
command.Parameters.Add("@respirator", Session("respirator"))
command.Parameters.Add("@footwear", Session("footwear"))
command.Parameters.Add("@info", Session("info"))
command.Parameters.Add("@person", cblPersons.SelectedItem.Text)
command.Parameters.Add("@summary", Session("summary"))
command.Parameters.Add("@discussed", rblOption.SelectedItem.Text)
command.Parameters.Add("@project", Session("project"))
command.Parameters.Add("@manager", Session("manager"))
command.Parameters.Add("@project", Session("project"))

command.ExecuteNonQuery().ToString()
Finally
conn.Close()
End Try

Can anyone please help?

I appreciate you taking your time.
AnswerRe: Procedure or function UpdateAllRecords has too many arguments specified. Pin
KaptinKrunch19-Sep-05 7:35
KaptinKrunch19-Sep-05 7:35 
Questionsomebody help me! Pin
Gulfraz Khan19-Sep-05 5:56
Gulfraz Khan19-Sep-05 5:56 
AnswerRe: somebody help me! Pin
Dave Kreskowiak19-Sep-05 7:56
mveDave Kreskowiak19-Sep-05 7:56 
GeneralRe: somebody help me! Pin
Gulfraz Khan20-Sep-05 2:45
Gulfraz Khan20-Sep-05 2:45 
GeneralRe: somebody help me! Pin
Dave Kreskowiak20-Sep-05 11:24
mveDave Kreskowiak20-Sep-05 11:24 
QuestionCarriage Return Pin
directred19-Sep-05 3:20
directred19-Sep-05 3:20 
AnswerRe: Carriage Return Pin
KaptinKrunch19-Sep-05 3:37
KaptinKrunch19-Sep-05 3:37 
AnswerRe: Carriage Return Pin
Dave Kreskowiak19-Sep-05 5:34
mveDave Kreskowiak19-Sep-05 5:34 
QuestionApp.config File Pin
risepop19-Sep-05 1:55
risepop19-Sep-05 1:55 
AnswerRe: App.config File Pin
Dave Kreskowiak19-Sep-05 5:32
mveDave Kreskowiak19-Sep-05 5:32 
QuestionComboBox - TextBox Pin
Zealot34518-Sep-05 23:37
Zealot34518-Sep-05 23:37 
AnswerRe: ComboBox - TextBox Pin
Briga18-Sep-05 23:56
Briga18-Sep-05 23:56 
GeneralRe: ComboBox - TextBox Pin
Zealot34519-Sep-05 22:27
Zealot34519-Sep-05 22:27 
Questionhow to export a dataset into excel files using vb.net? Pin
kcdeleon18-Sep-05 23:04
kcdeleon18-Sep-05 23:04 
AnswerRe: how to export a dataset into excel files using vb.net? Pin
seee sharp19-Sep-05 0:11
seee sharp19-Sep-05 0:11 
GeneralRe: how to export a dataset into excel files using vb.net? Pin
kcdeleon19-Sep-05 13:58
kcdeleon19-Sep-05 13:58 
QuestionExcel controlled by VB application runs too slow Pin
TheKriminal18-Sep-05 22:11
TheKriminal18-Sep-05 22:11 

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.