I need help in checking database fields using a method. I was thinking about using a boolean method.
my code is this:
' This is in a form
Dim note As ispec_note
note = New ispec_note(orderConnectionString, order.InternalStatusNoteID)
note.Text = txtInternalStatusNote.Text
order.InternalStatusNoteID = note.NoteID
these are the code in update save function:
param_col.Add(New SqlParameter("@note_id", _NoteID))
param_col.Add(New SqlParameter("@note_text", NoteText))
It's calling the save function from class and also the save function is calling the other function called updatesave function that has the parameters.
So i need to figure out what method i should create to check the database field. Im planning to create a method in a form than putting in class.