PC Review


Reply
Thread Tools Rate Thread

ComboBox formatting

 
 
Mark
Guest
Posts: n/a
 
      20th May 2010
Hi All,

In a query I formated a field to allow the sorting to come out in sequence.
x = 4
Number: format(x,"000000")

I have combo box based on this query and I would like to be able to type in
4 without the leading zero's. However it errors when doing so. I have tried
to use: cbConAudit_id = Format(cbConAudit_id, "000000") on after update, on
dirty, on change, but nothing is working. I've also used the format in the
properties using 000000, but still errors.

Is there a way to keep from adding the leading zeros?
 
Reply With Quote
 
 
 
 
Lord Kelvan
Guest
Posts: n/a
 
      21st May 2010
why dont you change for field to int rather than butchering the text
field and that will order it as a number rather than ordering it as
text

ie use cint(fieldname) in your rowsource

eg

select cint(numberfieldwhichistext),otherfields from the table
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combobox Conditional formatting =?Utf-8?B?V2VuZHk=?= Microsoft Access Form Coding 5 19th May 2006 08:50 PM
Formatting Combobox Luc Dansereau Microsoft Excel Programming 0 18th May 2005 05:56 AM
formatting combobox JT Microsoft Excel Programming 1 23rd Feb 2005 05:47 PM
conditional formatting with combobox =?Utf-8?B?VGVk?= Microsoft Access Forms 2 7th Feb 2005 08:09 PM
Formatting a ComboBox selection Ray Kanner Microsoft Excel Programming 9 2nd Jan 2004 06:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:44 AM.