That helps a some...VB code would be more helpful, but that's a starting point. The comment 'do stuff here' I assume is where my sql statements go, I also assume the sql statements won't be in comment. Is that going to be strictly in sql format, or is there other syntax that needs to be there?
So that code should be in a button click event like this?
Then I'll use another similar piece of code in the textbox subs with a 'select' statement to get data, eh?VB Code:
Private Sub CustOverwriteButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CustOverwriteButton.Click MessageBox.Show("Are you sure you want to overwrite this record?" & Environment.NewLine & "Overwriting this record will permantently delete the old customer record.", "Overwrite Record", _ MessageBoxButtons.OKCancel, MessageBoxIcon.Question) 'Then some 'update' derivation of your code above. End Sub
CP




Reply With Quote