Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a Colomn of a Combo Box

Status
Not open for further replies.

kopy

Technical User
May 30, 2002
141
US
I have a 3 column combo box that has a first column that needs to be formated with leading zeros. For exapme 301 should be 000301.

Any ideas of how to do this would be great.

Thanks, Kopy.
 
Try this

Right("000000"&yourfield,6) as your field

Take it Easy
Man with one chopstick go hungry
 
Thanks for replying.

A couple of questions:

The row source of the combo box is a query. Where would I put this format code? Where would I specifiy tha this is for the first column, column(0)?
 
Open the query that underlines the combo box ( I assume there are 3 fields), and for your first column instead of having what you have put something like the below:

Code:
Column1: Right("000000" & [yourfield],6)

Take it Easy
Man with one chopstick go hungry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top