List Box Format

C

Clint Liezert

Can I control the format of columns in a "multiple
select" list box? My data consists of a string of 10
characters. In some cases I would like it displayed
as "@@-@@@-@@-@@@" and in other cases I would prefer it
to be "@@-@@@@@.@@@"
 
G

Gary Miller

Clint,

You can do the formatting in a query and base the list box
on the query or you can use the format function directly in
a SQL statement for your RowSource....

SELECT Format([YourFieldName],"@@-@@@-@@-@@@") AS x
FROM tblYourTable;

You may have some problems if you are using this field as a
criteria to find a record or if you are storing the output
and will need to link it to the original format, so you may
want to have a hidden bound first column that doesn't have
the formatting if this is the case.
--

Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top