How keep number field in a combobox from displaying decimals

I have a combobox that is displaying decimals in a field named 3DigitCode and I cannot figure out why.

Here is the SQL of the code behind the combobox:

SELECT tblPartNumberItemMasterTable.ItemMasterID, tblPartNumberItemMasterTable.[3DigitCode] AS Code, tblPartNumberItemMasterTable.DataMasterDescription1 AS [Description 1], tblPartNumberItemMasterTable.DataMasterDescription2 AS [Description 2]
FROM tblPartNumberItemMasterTable
ORDER BY tblPartNumberItemMasterTable.[3DigitCode];
SteveL13Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Christal CISSPCommented:
format(3digitcode,"0")

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rey Obrero (Capricorn1)Commented:
open the table "tblPartNumberItemMasterTable" in design view
check the Field size setting of the field "3DigitCode", it should be Integer
Jeffrey CoachmanMIS LiasonCommented:
Set the rowsouce of the Listbox to something like this:
SELECT fld1, fld2, Round(YourNumberField,0) As YourRoundedNumber
From YourTable

This will keep the full number (including decimals) stored in the table,...but it will "appear" as a rounded whole number in the list box.

(Also make users are aware of the displayed rounding...)
SteveL13Author Commented:
Am going with the first solution but all 3 very worthwhile.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.