I have a persisted computed column in my sql table, which has the following computed specification: ('W'+CONVERT([varchar](10),[WONum],0))
WONum is my auto-increment and primary key field. So basically it is a copy of that integer with a W in front of it like W1504.
My problem is when I insert a new record from my winform it puts the auto-increment number in it's textbox but it doesn't also show the computed value in it's textbox. It is in the table because when I leave the form and go back in it shows up. Does anyone know how to get it to put both of those values in their respective textboxes on addnew from a winform?
Thanks,
Stacy
WONum is my auto-increment and primary key field. So basically it is a copy of that integer with a W in front of it like W1504.
My problem is when I insert a new record from my winform it puts the auto-increment number in it's textbox but it doesn't also show the computed value in it's textbox. It is in the table because when I leave the form and go back in it shows up. Does anyone know how to get it to put both of those values in their respective textboxes on addnew from a winform?
Thanks,
Stacy