[RESOLVED] Wrong value in form
This started out, yesterday, as an interesting problem. Now it just sucks.
I have a VB form with a group of text and combo boxes that are bound to fields in a datatable. One of the text boxes is bound to the PK, which is an integer field set to auto increment. I have the PK because I have found that saving and deleting records cannot be achieved without it.
I am using a binding navigator which works as expected, except for the add new record button. The record gets added, but the value for the pk field is always -1 instead of the next increment (I am beginning to believe that it is excrement). I have tried everything I can think of, and a whole lot more, without coming up with a solution to this problem. I have used this before without any problems of this nature so I am totally at a loss as to why this is occurring. Any help would be appreciated.