Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / March 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 29 Mar 2007 08:49 GMT
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
storrboy - 29 Mar 2007 14:16 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.