V
Vayse
Vb.net 2005, Developer Edition.
When one creates a bindings navigator, one of the standard buttons created
on the toolbar is Add New. Which works fine if you create a new item.
However, if you don't enter any data, and click previous record or Move
First, an error is generated. (there are previous records) In my case, in
frmProducts I get "ProductCode cannot be null"
Two questions
1) How do I trap for this error. Since theres no code in frmProducts.vb for
the Previous Record button, I'm unsure of how to trap it.
2) How do I solve this issue?
Thanks
Vayse
When one creates a bindings navigator, one of the standard buttons created
on the toolbar is Add New. Which works fine if you create a new item.
However, if you don't enter any data, and click previous record or Move
First, an error is generated. (there are previous records) In my case, in
frmProducts I get "ProductCode cannot be null"
Two questions
1) How do I trap for this error. Since theres no code in frmProducts.vb for
the Previous Record button, I'm unsure of how to trap it.
2) How do I solve this issue?
Thanks
Vayse