S
Steve Wolfie
I posted a few days ago and got some guidance about how to go about fixing
my problem...
I rewrote a ton of code and still have the same problem... SOMEONE PLEASE
HELP!!!
The problem I think has to do with postback, but not sure how to control it.
Follows the code for the update feature:
Public Function updaterecord(ByVal id As Integer, ByVal MoldexRep As String,
ByVal airgasregion As String, ByVal branchno As String, ByVal city As
String, ByVal keycontact As String, ByVal phone As String, ByVal BranchType
As String, ByVal Inicontactdate As String, ByVal participate As String,
ByVal meetingdate As String, ByVal stockingbranch As String, ByVal POPLaced
As String, ByVal NoISReps As String, ByVal NoOSReps As String, ByVal
comments As String)
InitializeComponentforupdate()
sqlupdate.Parameters("@ID").Value = id
sqlupdate.Parameters("@MoldexRep").Value = MoldexRep
sqlupdate.Parameters("@AirgasRegion").Value = airgasregion
sqlupdate.Parameters("@BranchNo").Value = branchno
sqlupdate.Parameters("@City").Value = city
sqlupdate.Parameters("@Keycontact").Value = keycontact
sqlupdate.Parameters("@Phone").Value = phone
sqlupdate.Parameters("@BranchType").Value = BranchType
sqlupdate.Parameters("@IniContactDate").Value = Inicontactdate
sqlupdate.Parameters("@Participate").Value = participate
sqlupdate.Parameters("@MeetingDate").Value = meetingdate
sqlupdate.Parameters("@StockingBranch").Value = stockingbranch
sqlupdate.Parameters("@POPLaced").Value = POPLaced
sqlupdate.Parameters("@NoISReps").Value = NoISReps
sqlupdate.Parameters("@NoOSReps").Value = NoOSReps
sqlupdate.Parameters("@Comments").Value = comments
sqlcn.Open()
sqlda.UpdateCommand.ExecuteNonQuery()
sqlcn.Close()
End Function
my problem...
I rewrote a ton of code and still have the same problem... SOMEONE PLEASE
HELP!!!
The problem I think has to do with postback, but not sure how to control it.
Follows the code for the update feature:
Public Function updaterecord(ByVal id As Integer, ByVal MoldexRep As String,
ByVal airgasregion As String, ByVal branchno As String, ByVal city As
String, ByVal keycontact As String, ByVal phone As String, ByVal BranchType
As String, ByVal Inicontactdate As String, ByVal participate As String,
ByVal meetingdate As String, ByVal stockingbranch As String, ByVal POPLaced
As String, ByVal NoISReps As String, ByVal NoOSReps As String, ByVal
comments As String)
InitializeComponentforupdate()
sqlupdate.Parameters("@ID").Value = id
sqlupdate.Parameters("@MoldexRep").Value = MoldexRep
sqlupdate.Parameters("@AirgasRegion").Value = airgasregion
sqlupdate.Parameters("@BranchNo").Value = branchno
sqlupdate.Parameters("@City").Value = city
sqlupdate.Parameters("@Keycontact").Value = keycontact
sqlupdate.Parameters("@Phone").Value = phone
sqlupdate.Parameters("@BranchType").Value = BranchType
sqlupdate.Parameters("@IniContactDate").Value = Inicontactdate
sqlupdate.Parameters("@Participate").Value = participate
sqlupdate.Parameters("@MeetingDate").Value = meetingdate
sqlupdate.Parameters("@StockingBranch").Value = stockingbranch
sqlupdate.Parameters("@POPLaced").Value = POPLaced
sqlupdate.Parameters("@NoISReps").Value = NoISReps
sqlupdate.Parameters("@NoOSReps").Value = NoOSReps
sqlupdate.Parameters("@Comments").Value = comments
sqlcn.Open()
sqlda.UpdateCommand.ExecuteNonQuery()
sqlcn.Close()
End Function