PC Review


Reply
Thread Tools Rate Thread

Convert MonthName back to Number or create invisible bound column in listbox

 
 
Bob
Guest
Posts: n/a
 
      29th Mar 2007
Hi all,

I know you can convert a number into a monthname easily or a full date
into a name easily but can you convert text like Aug, Sep etc back to
8,9?

The reason I want to do this is because I want to show Aug 2006, Sep
2006 in a listbox but I want the listbox value to be 200608 etc. I've
specifically converted an original 200608 into the nice looking Aug
2006 and I want to convert it back but am not sure how to do it. I've
also tried having the recordsouce query have 2 columns (Aug 2006 and
200608) but only display 1 (the Aug 2006) and have the bound column be
the 2nd column, but then the listbox.value is null... Suggestions?

Cheers,

Bob

 
Reply With Quote
 
 
 
 
storrboy
Guest
Posts: n/a
 
      29th Mar 2007

I would suggest you not convert the date values and apply Formats
instead. Unless you are doing it for some kind of sorting that you
didn't mention I think it's generally eaiser to leave dates as dates .

Format("3/29/07", "mmm yyyy") would produce Mar 2007
Format("3/29/07", "yyyymm") would produce 200703

 
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
Combo box - bound column invisible in drop down list Sally Green Microsoft Access Forms 1 27th Jun 2008 05:33 AM
Listbox Bound Column Problem =?Utf-8?B?TG93cmlkZXI3Mg==?= Microsoft Access Form Coding 1 12th Oct 2005 09:46 PM
How do a make an <ASP:DataGrid column invisible when its data bound? John Blair Microsoft ASP .NET 15 3rd Jan 2005 04:06 AM
Can't open form using listbox non-bound column Nick Mirro Microsoft Access Form Coding 2 26th Oct 2003 05:54 PM
How Do I Make a Column In My Bound DataGrid Invisible? Ben Pursley Microsoft VB .NET 3 16th Sep 2003 09:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:05 AM.