Click here to Skip to main content
16,008,719 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSynchronize two database Pin
Aman Ullah Principal Software Engineer31-Jan-05 20:58
Aman Ullah Principal Software Engineer31-Jan-05 20:58 
GeneralPrinting in VB.net (Please Please help me) Pin
Aman Ullah Principal Software Engineer31-Jan-05 18:31
Aman Ullah Principal Software Engineer31-Jan-05 18:31 
GeneralRe: Printing in VB.net (Please Please help me) Pin
Dave Kreskowiak1-Feb-05 3:39
mveDave Kreskowiak1-Feb-05 3:39 
GeneralVB.Net and Access Stored Procedures Pin
BlueMurderJay31-Jan-05 16:44
BlueMurderJay31-Jan-05 16:44 
GeneralRe: VB.Net and Access Stored Procedures Pin
Just Greeky Creek1-Feb-05 1:41
Just Greeky Creek1-Feb-05 1:41 
GeneralRe: VB.Net and Access Stored Procedures Pin
BlueMurderJay1-Feb-05 14:39
BlueMurderJay1-Feb-05 14:39 
GeneralRe: VB.Net and Access Stored Procedures Pin
BlueMurderJay1-Feb-05 14:44
BlueMurderJay1-Feb-05 14:44 
GeneralRe: VB.Net and Access Stored Procedures Pin
BlueMurderJay1-Feb-05 16:11
BlueMurderJay1-Feb-05 16:11 
More Info....

I have modified the structure as follows

Try
objCommand = New OleDb.OleDbCommand
objCommand.Connection = objConnection
objCommand.CommandType = CommandType.StoredProcedure
objCommand.Parameters.Add("@CustNum", OleDb.OleDbType.Variant, 50, "99999")
objCommand.Parameters.Add("@CustName", OleDb.OleDbType.Char, 50, "Test1")
objCommand.Parameters.Add("@CustContact", OleDb.OleDbType.Char, 50, "Test User")
objCommand.Parameters.Add("@CustAdd1", OleDb.OleDbType.Char, 50, "123 Your Street")
objCommand.Parameters.Add("@CustAdd2", OleDb.OleDbType.Char, 50, "Apt C")
objCommand.Parameters.Add("@CustCity", OleDb.OleDbType.Char, 50, "Your City")
objCommand.Parameters.Add("@CustState", OleDb.OleDbType.Char, 2, "OH")
objCommand.Parameters.Add("@CustZip", OleDb.OleDbType.Char, 50, "99999")
objCommand.Parameters.Add("@CustPhone", OleDb.OleDbType.Char, 50, "1234567890")
objCommand.Parameters.Add("@CustFax", OleDb.OleDbType.Char, 50, "1234567891")
objCommand.Parameters.Add("@CustEmail", OleDb.OleDbType.VarChar, 50, "test@test.com")

objCommand.CommandText = "usp_AddCustomer"
objConnection.Open()
objCommand.ExecuteNonQuery()
Catch OleDbExceptionErr As OleDbException
MsgBox(OleDbExceptionErr.ToString)
End Try

I am now just trying to do hard coded strings, and when I run it with the try...catch block, I get teh following error:

System.Data.OleDb.OleDbException: Parameter [@CustNum] has no default value.

Jay Davis
GeneralRe: VB.Net and Access Stored Procedures Pin
Dave Kreskowiak1-Feb-05 18:06
mveDave Kreskowiak1-Feb-05 18:06 
QuestionHow to use DirectShow in VB.net? Pin
rushing31-Jan-05 14:32
rushing31-Jan-05 14:32 
AnswerRe: How to use DirectShow in VB.net? Pin
Christian Graus31-Jan-05 14:58
protectorChristian Graus31-Jan-05 14:58 
Generalcrystal reports - dynamically add detail section Pin
kkristian31-Jan-05 11:48
kkristian31-Jan-05 11:48 
QuestionCan someone help me with this one Pin
Delo31-Jan-05 11:39
Delo31-Jan-05 11:39 
AnswerRe: Can someone help me with this one Pin
Charlie Williams31-Jan-05 12:38
Charlie Williams31-Jan-05 12:38 
GeneralRe: Can someone help me with this one Pin
Delo31-Jan-05 12:56
Delo31-Jan-05 12:56 
GeneralRe: Can someone help me with this one Pin
rwestgraham31-Jan-05 14:36
rwestgraham31-Jan-05 14:36 
GeneralRe: Can someone help me with this one Pin
Delo31-Jan-05 14:57
Delo31-Jan-05 14:57 
Questionhow to handle a change on a runtime combobox value to enable the OKbutton Pin
David M J31-Jan-05 10:45
David M J31-Jan-05 10:45 
AnswerRe: how to handle a change on a runtime combobox value to enable the OKbutton Pin
rwestgraham31-Jan-05 12:34
rwestgraham31-Jan-05 12:34 
GeneralRecordset Object in VB.net Pin
eshban28431-Jan-05 10:27
eshban28431-Jan-05 10:27 
GeneralRe: Recordset Object in VB.net Pin
Dave Kreskowiak1-Feb-05 3:33
mveDave Kreskowiak1-Feb-05 3:33 
GeneralRe: Recordset Object in VB.net Pin
eshban2841-Feb-05 11:05
eshban2841-Feb-05 11:05 
GeneralRe: Recordset Object in VB.net Pin
Dave Kreskowiak1-Feb-05 11:56
mveDave Kreskowiak1-Feb-05 11:56 
GeneralRad btn select case Pin
Jaydeanster31-Jan-05 8:34
Jaydeanster31-Jan-05 8:34 
GeneralRe: Rad btn select case Pin
Just Greeky Creek1-Feb-05 1:53
Just Greeky Creek1-Feb-05 1:53 

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.