VBA

Visual Basic for Applications articles

Great article on using Excel object model

Recently I had to create an Excel spreadsheet export for one of my clients using my Report Generator in Access, it was a thorny project since it wasn't a straight export from a query or table. I had to instead use vba to create the spreadsheet and place the values of each column and row into each ce [...]

2010-11-13T23:47:36-06:00November 13th, 2010|

Custom OpenForm code – Close and open your form

One of the major issues with DoCmd.OpenForm is it doesn't close the form before opening it again. This can lead to unexpected behavior of your application, so of course I created my own open form code:

2010-10-23T21:23:41-05:00October 23rd, 2010|

Maximize the use of TempVars in Access 2007 and 2010

The TempVars collection has the ability to save developers time, improve the reliability of your programming and provide you with new ways to share information across your application. TempVars were introduced starting in Access 2007 and represented a major addition to the arsenal of tools for profe [...]

2010-09-16T20:43:03-05:00September 16th, 2010|

Map route on Yahoo Maps with Addresses in Access

Yahoo maps is great at mapping out a route you entered through the browser, but what if you need to map the addresses using a pre-defined route in Access? This tip will show you how to build the URL on the fly and then pass it along to the default browser on your PC. Note: for the same technique usi [...]

2013-09-27T19:22:39-05:00July 21st, 2010|

Map route on Google Maps with Addresses in Access

Google maps is great at mapping out a route you entered through the browser, but what if you need to map the addresses using a pre-defined route in Access? This tip will show you how to build the URL on the fly and then pass it along to the default browser on your PC. Here's the code: Private Sub cm [...]

2010-07-21T16:49:08-05:00July 21st, 2010|

Access function to return day of the week

Sometimes you need the actual day name of the date and not the numeric equivalent, the following function will do that for you: Public Function MyWeekDayName(dteDate As Date) As String 'Will return "Monday", "Tuesday", etc. based on the date supplied MyWeekDayName = WeekdayName(WeekDay(dteDate), Fal [...]

2010-07-13T19:50:36-05:00July 13th, 2010|
Go to Top