I am using C Sharp for front end and Access as back end. In the sales table I want to enter weight in folating point number. It calculate the total properly but at the time of saving it display error message that Input string was not in correct format. I want to convert float data to string at the time of saving.

string b = Convert.ToString(a);

Try this. b is whatever string you want it to be, a is the float.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.