W
willrm668
Guest
I am coding a module in Visual Basic 2012 similar to one I have coded successfully in Visual Basic 2010, but when I use
customersBindingSource.AddNew
the .Position does not automatically shift to the new record in Details View.
I have tried changing the .Position and .MoveLast in a separate line of code with no luck.
I can tell that a new record is created, but the record in Position 0 stays in view. I am expecting the view to switch to the new record with blank textboxes.
Does this have anything to do with the fact that my primary key on this table is autogenerated?
My Delete and Edit options on the same form work.
Thanks in advance for any suggestions.
Continue reading...
customersBindingSource.AddNew
the .Position does not automatically shift to the new record in Details View.
I have tried changing the .Position and .MoveLast in a separate line of code with no luck.
I can tell that a new record is created, but the record in Position 0 stays in view. I am expecting the view to switch to the new record with blank textboxes.
Does this have anything to do with the fact that my primary key on this table is autogenerated?
My Delete and Edit options on the same form work.
Thanks in advance for any suggestions.
Continue reading...