Get 15 minutes of free Live Help!

Get a list of form controls sorted by tab order

When you iterate through a collection of controls in a Microsoft Access form, the order of the list of controls that you end up with may not be sorted as you expect. Rather than being sorted by the tab index, the list will be sorted

read more

posted on: Jan 29, 2014 | author: Carl Connett

Scroll in a Microsoft Access text box using the mouse wheel

Microsoft Access does not have built-in mouse wheel scrolling in form text boxes. You can provide mouse wheel scrolling by writing some VBA code in the Form_MouseWheel() event procedure.

Trying to scroll in a text box can be particularly frustrating if the bottom of the

read more

posted on: Jan 27, 2014 | author: Carl Connett

Get total hours and minutes from summing columns of Hours and Minutes

This function can be used to return total hours or total minutes from a column of Hours and a column of Minute values.  For example, in the table below, an Hours value was captured separately from a Minutes value in a time clock application.  If

read more

posted on: Oct 22, 2013 | author: Carl Connett

Use VBA to add days to a date but exclude Saturday and Sunday

This function finds a date a certain number of days from a start date when weekends are not included. It can be used when your work week does not include Saturday and Sunday and you want to find a business day in the future. Microsoft

read more

posted on: Oct 8, 2013 | author: Carl Connett

“Folder In Use” Error After Using DoCmd.OutputTo for PDF Export

I got a “Folder In Use” error after using a loop that included the DoCmd.OutputTo macro action to export a Microsoft Access report to PDF files.  The error occurred when I tried to rename the folder that the PDF files were exported to.

OutputTo Folder In Use Error

Using the

read more

posted on: Oct 1, 2013 | author: Carl Connett

How to use VBA to minimize the Office 2007 Ribbon

If you’ve ever wished you could keep the Office Ribbon, but automatically minimize it to conserve space, this VBA function is for you.  The same technique works for Microsoft Access, Microsoft Word, etc.

The function includes two pieces of logic.  The first piece checks to

read more

posted on: Nov 27, 2009 | author: Carl Connett

Next Entries »

Live Chat Software