I have a text field on a form called txtDocType. In the database the value is actualy an integer value rangng from 1-9. I have a case statement that converts the number to 1-Sales, 2-Order, 3-Quote , etc. The string value displays correctly on the screen. Now I also have a string variable called TranType. I simply want to assign the value of txtDocType to the string varialble TranType. I thought this would do the trick:
TranType = txtDocType.Text;
So the values of TranType will be Invoice, Order, Quote, etc.
The value for TranType is always null. What am I missing here?