more questions :
1. another problem in the form, when i try to modify some colum data directely from the Access DB it does accept the changes and updates the DB , but when i try to do the same thing in the form for the same colum, it said i can't modify the record because it relates to another table, i under stand if the colum was the PK of the table and a FK for the other table i wont be able to change it, but why i cant modify the other data ?
it also says in the exception msg that a "
record" cant be modofied..in my case, im only trying to change a "colum" data and not the whole record?
any thing to do with the update method ?
------------------------------
2. i have a menu system that when the user clicks a certain menu button , it brings the form up and the binding navigation menu that associated with it..
at the moment, all what i can think of is have 2 methods , one to be called inside the form_load method to hide all the controls that i dont need when the form loads..and another method to be called when the user clicks the form button up option on the menu, to make all the form controls and the navigation menu visible ,
is that a good way of doing it ? any other suggestions ?
-----------------------------------
3. when i click on add record in the form and then leave the whole record empty .i.e. dont enter any value, in the new field, then i try to press the next item button on the binding navigator , i got a nullExceptionAllowed unhandled, i try the following inside the next iteam on click event :
[SIZE=2][COLOR=#0000ff]Try[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].Validate()[/SIZE]
[SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].PARTBindingSource.EndEdit()[/SIZE]
[SIZE=2][COLOR=#0000ff]Catch[/COLOR][/SIZE][SIZE=2] ex [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] ConstraintException[/SIZE]
[SIZE=2]MsgBox([/SIZE][SIZE=2][COLOR=#800000]"ERROR::"[/COLOR][/SIZE][SIZE=2] & ex.Message)[/SIZE]
[SIZE=2]DB1DataSet.RejectChanges()[/SIZE]
[SIZE=2]TextBox1_pcode.Text = [/SIZE][SIZE=2][COLOR=#800000]""[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]Catch[/COLOR][/SIZE][SIZE=2] hh [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] NoNullAllowedException[/SIZE]
[SIZE=2]MsgBox([/SIZE][SIZE=2][COLOR=#800000]"ERROR100::"[/COLOR][/SIZE][SIZE=2] & hh.Message)[/SIZE]
[SIZE=2]DB1DataSet.RejectChanges()[/SIZE]
[SIZE=2][COLOR=#0000ff]Catch[/COLOR][/SIZE][SIZE=2] em [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] Exception[/SIZE]
[SIZE=2]MsgBox(em.Message)[/SIZE]
[SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Try[/COLOR][/SIZE]
then why i run it, and try to do the same thing, it will handle a duplicate PK entry and enter an empty record, but it wont handle a null value even though i did catch the exception.. is it about where i cougth the exception ? where should i catch it ?
----------------------------------
4. i want to do the following in the form , if a record has been added successfully, i want to do some thing....
how do i check in my form that when i press the add new record button and add a new record to the form it has been added successuflly ????
too many Question
but Thanks in Advance!!
~signo.X