I have two different forms that use datasets to save data to access database files. Each form saves to different files that are setup the same way, just in different locations. Both forms use textboxes and have almost identical code to save the datasets. Both datasets use System.string for the fields I am working with. One form saves the data exactly as entered but the other form will remove leading zeros from numbers entered. I can not find any difference in either the database properties inside of Access or on each of the forms/textbox properties. The datasets also appear the same. Eg. 0001 gets saved as 1. Both DB fields are set to text.
When I enter the data and click save, the textbox still shows all of the leading zeros but when I open the access file, they have been removed. Again, this only happens with one of the forms/databases. What could I be overlooking?
When I enter the data and click save, the textbox still shows all of the leading zeros but when I open the access file, they have been removed. Again, this only happens with one of the forms/databases. What could I be overlooking?