Click here to Skip to main content
15,889,867 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVisual Basic and Access Database updating Pin
jbassmanp9-Jun-16 2:16
jbassmanp9-Jun-16 2:16 
QuestionRe: Visual Basic and Access Database updating Pin
ZurdoDev9-Jun-16 2:32
professionalZurdoDev9-Jun-16 2:32 
AnswerRe: Visual Basic and Access Database updating Pin
Dave Kreskowiak9-Jun-16 2:50
mveDave Kreskowiak9-Jun-16 2:50 
AnswerRe: Visual Basic and Access Database updating Pin
jbassmanp9-Jun-16 7:43
jbassmanp9-Jun-16 7:43 
QuestionApplication Portability Pin
BirderBob1-Jun-16 6:04
BirderBob1-Jun-16 6:04 
AnswerRe: Application Portability Pin
Dave Kreskowiak1-Jun-16 6:13
mveDave Kreskowiak1-Jun-16 6:13 
QuestionRecord does not get updated Pin
Raabi Anony30-May-16 18:19
Raabi Anony30-May-16 18:19 
AnswerRe: Record does not get updated Pin
Richard Deeming1-Jun-16 2:26
mveRichard Deeming1-Jun-16 2:26 
Raabi Anony wrote:
Dim StaffInfoTable As New DataTable
Try
    adapter.Fill(StaffInfoTable)
    adapter.Update(StaffInfoTable)

You create a new DataTable, load the data from the database, and then update the database with the data you've just loaded. There's nothing in that code that changes the data.

Are you missing part of your code from the question?


Raabi Anony wrote:
Do I have to include ALL the Fields in the strUpdate; which are included in cmdText string; even if most of the fields are least expected to be modified?

You have to include all of the fields you want to update, along with the primary key. If a field isn't going to be updated, and it's not the primary key, then you don't need to include it.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Record does not get updated Pin
Raabi Anony1-Jun-16 16:34
Raabi Anony1-Jun-16 16:34 
GeneralRe: Record does not get updated Pin
Richard Deeming2-Jun-16 1:48
mveRichard Deeming2-Jun-16 1:48 
GeneralRe: Record does not get updated Pin
Raabi Anony2-Jun-16 17:02
Raabi Anony2-Jun-16 17:02 
GeneralRe: Record does not get updated Pin
Chris Quinn2-Jun-16 21:06
Chris Quinn2-Jun-16 21:06 
GeneralRe: Record does not get updated Pin
Raabi Anony3-Jun-16 3:02
Raabi Anony3-Jun-16 3:02 
QuestionDynamic SQL generation is not supported against multiple base tables Pin
Raabi Anony29-May-16 17:17
Raabi Anony29-May-16 17:17 
AnswerRe: Dynamic SQL generation is not supported against multiple base tables Pin
Peter Leow29-May-16 17:57
professionalPeter Leow29-May-16 17:57 
GeneralRe: Dynamic SQL generation is not supported against multiple base tables Pin
Raabi Anony29-May-16 18:41
Raabi Anony29-May-16 18:41 
AnswerRe: Dynamic SQL generation is not supported against multiple base tables Pin
Mycroft Holmes29-May-16 22:19
professionalMycroft Holmes29-May-16 22:19 
GeneralRe: Dynamic SQL generation is not supported against multiple base tables Pin
Raabi Anony30-May-16 17:35
Raabi Anony30-May-16 17:35 
GeneralRe: Dynamic SQL generation is not supported against multiple base tables Pin
Mycroft Holmes30-May-16 19:08
professionalMycroft Holmes30-May-16 19:08 
GeneralRe: Dynamic SQL generation is not supported against multiple base tables Pin
Raabi Anony31-May-16 17:40
Raabi Anony31-May-16 17:40 
Questionadding values into a vb6 multiple-column list-box manually (in design time) Pin
Member 1250518129-May-16 9:27
Member 1250518129-May-16 9:27 
AnswerRe: adding values into a vb6 multiple-column list-box manually (in design time) Pin
Dave Kreskowiak29-May-16 18:42
mveDave Kreskowiak29-May-16 18:42 
AnswerRe: adding values into a vb6 multiple-column list-box manually (in design time) Pin
CHill601-Jun-16 0:50
mveCHill601-Jun-16 0:50 
QuestionAliasing Fieldnames and adding a calculation Field Pin
Raabi Anony27-May-16 18:10
Raabi Anony27-May-16 18:10 
AnswerRe: Aliasing Fieldnames and adding a calculation Field Pin
CHill6028-May-16 3:19
mveCHill6028-May-16 3:19 

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.