Microsoft Access Sample Code

Automation

Microsoft Access Sample Code

Function for Converting a Month Name to a Number

How to Convert Abbreviated Month Names to Numeric Values in Microsoft Access

When working with Microsoft Access programming, you might encounter situations where month names are provided in an abbreviated format, such as "Jan" for January or "Feb" for February. While this format is useful in some scenarios, there may be a need to store the month as a numeric value (e.g., 1 for January, 2 for February) in your database. Accomplishing this task efficiently requires minimal VBA (Visual Basic for Applications) code to create a translation between the abbreviation and its numeric equivalent.

Below, we outline a simple VBA function that takes the abbreviated month name as input and returns the corresponding numeric value. This approach minimizes complexity and integrates seamlessly into your Microsoft Access database workflows. Additionally, if you need to retrieve the full month name (e.g., "January" or "February") from a date-formatted field, we provide another helpful VBA function to streamline the process.

VBA Function for Converting Month Abbreviations to Numeric Values

The following function accepts an abbreviated month string (e.g., "Jan") as an argument and returns its numeric representation:

These VBA functions are highly useful for automating the handling of month-related data in your database. By integrating these solutions, you can ensure your data is stored and displayed in the desired format with minimal manual intervention.

Need Help with Microsoft Access Programming?

If you need further assistance with Microsoft Access VBA programming or database optimization, Winning Solutions, Inc. is here to help. Our team of experienced developers specializes in delivering customized solutions to meet your specific needs. Contact us today for expert support and innovative database services.

Download a Demonstration

Are you having problems getting the code to work for you? If so, then try the demo to see how it can meet your needs.

Download a demo version for free to test! The demo version is in Access 2007, which will work with either Access 2007, 2010, 2013, 2016, 2019 or Office 365. If you need a previous version of Access to try, please Contact Us. Please note that the demo version of the software is fully functional but does not allow you to see the code implementation. The full version allows you to design the code implementation and make adjustments for your needs.

Access 2007 Download
Access 2010/2013/2016/2019/Office 365 Download
Access 2010 64 Bit Download
Access 2013/2016/2019/Office 365 64 Bit Download

Live Demonstration: To experience a more interactive and personalized demonstration of this WSI template, we invite you to contact WSI and schedule a live demonstration with one of our team members. This opportunity allows you to engage directly with us, either as an alternative to or in conjunction with downloading and exploring the demo version of the template at your leisure. Please note that downloading Microsoft Office files, including Microsoft Access database files, might trigger a security warning on your computer. To avoid this and get a comprehensive overview, you have the option of viewing the template through a virtual meeting on Teams or Zoom with a WSI representative.
Once you purchase the database template, you will receive the full version of the database in a standard Access Database file. The purchased database will have full access to the database window, all design objects, the visual basic project code, and you will be able to modify or add to the design in any way you wish (this does not apply to the run-time/compiled versions). If you lack the time to integrate this database into your system, please Contact Us and we will be glad to help with your integration process. If you like the basics of what you see in the database, but need enhancements to make the system functional for your business, please Contact Us and we will develop a quote for you to implement the additional features and enhancements that you require.

Purchase Price

$4.99 - this allows you to use this database template however you wish within your organization.

Once your purchase is complete - you will receive an email within 12 Hours (shorter during standard business hours) with a link to download the full version of the database. Please be sure and check your junk mail folder as this often ends up there.

If you need any help implementing this function or modifications made for your needs, to get a free quote for your Microsoft Access Development needs.  WSI will determine your needs based on written requirements that you provide. Please ask your WSI representative to send you an example of what constitutes sufficient written requirements. If you need assistance preparing the necessary requirements, WSI offers a fee based service to assist you. Please ask your WSI representative for details or you can review our process mapping service.

WSI offers optional paid support and customization programming services. WSI templates are priced based on the purchaser self-supporting the database. WSI assumes purchasers, who do not wish to pay WSI for support, have a level of knowledge of Microsoft Access and Microsoft SQL server to enable them to self-perform installation, customization and use of the template. WSI does offer paid support in these areas by the hour. Please Contact Us for the current hourly fee.

To learn more about the WSI quoting process.

Testimonials

"Once again, you guys have outdone yourself. The service and support you have provided has been the best I've ever experienced from a software development team. You guys have the best Access calendar GUI I've ever seen."
Mike Mattas
New-Tech Systems
Plainfield, IL


"Thanks to all!! Nice job on the changes. They look good, thanks for your quick response !!"
George Ells
Tulip Systems, Inc.
Pittsburgh, PA


"Thanks for all your help. Your service is great as I find you and your team easy to deal with and very responsive in terms of getting the changes done.
Great work."
Steve Da Silva
Manager – Customer Support
The Hospital for Sick Children
Toronto Ontario Canada


On October 5 I was working on an Access database program, and needed assistance to get it in use quickly. I found Winning Solutions via google/chat now, they contacted me with their programmer Andres Dominicci the next day. With the expertise of Andres the database was put in the store for use just 4 days later. The efficiency of his programming and the added benefit of video to refer back to in case of small adjustments brought what seemed like a daunting task into reality very quickly. You can get quick, efficient, trustworthy help directly into your office regardless of your location. This is utterly amazing. I would not hesitate to recommend this company for specialized projects in your office.

Much thanks to Winning Solutions… Andres you are a winner!

Debbie Hunt
Controller
Glendon Bald Eagle Holdings Ltd.
British Columbia, Canada


I have dealt with many IT services companies over the last 30 years and have had the opportunity to implement many platforms, middleware, and systems. Usually with multiple vendors and programs that do collaborate well together.

Bottom Line: Winning Solutions is “hands down” the most polite, professional, committed, able, and proven company I have ever worked with.
Their staff, top to bottom, are all Winners!

I have had WSI team members assist me with integrations that other vendors could not accomplish.

I do not look for or want a “cookie cutter” solution. This is where WSI shines, CUSTOM APPLICATIONS, just what you need, not a bunch of superfluous promises or features.


Dave Yeadon
Dakota Steel & Trim
Canton, SD


Our Service Dept is enjoying the Calendar, we adapted the Enhanced Microsoft Access Calendar to meet our needs. I found your website after searching for a Template for a Calendar based off Access. That I could build off from. Prior to using the Enhanced Microsoft Access Calendar we booked our appointments on a huge paper calendar that daily had to be re-written daily to move the incomplete Services and Repairs. The Service Manager and Advisors enjoy the ease of booking work. There are Schedules available on the Market but the parameters were not what we were seeking. The Enhanced Microsoft Access Calendar was a bullseye.

Richard “Dick” Milliken
Whited Peterbilt
Bangor, Maine

Want quick Answers?

Email Now

Call Now

About Us

WSI is a small business and a leading provider of custom access programming and database solutions for government entities, Fortune 1000 companies, and emerging businesses. We are your custom access development experts.