July 2020

MS Access VBA Form Filter Example

In a previous post I gave an example of a MS Access form filter. This revision is to demonstrate how to requery a form after the combobox changes, and not when a button is clicked. Here is the code: Private Sub cboDescription_AfterUpdate() Me.FilterOn = False m_Where = m_Where & ” AND Description = ‘” & […]

Continue Reading

How To Add Images To tblBinary

I have another post which tells you how you can extract your images from tblBinary (for the custom ribbon), but how do you get them in there in the first place? When you click “Add file to data base” this happens: Private Sub AddFile_Click() Dim strFile As String strFile = “file.jpg” If strFile <> “” […]

Continue Reading

How to get the images out of tblBinary

The custom ribbon uses the tblBinary to store images, but how do you get them out, if you want to use the nice images again for something else like a webpage toolbar? How to get the images out of tblBinary Well this code will loop the tblBinary table and save each image to the specified […]

Continue Reading

How To Use The Value Of A Hidden Combo Box Column

So I had a question come my way regarding some form operations. It will probably help someone else, so I am going to let you know how I did it. Basically it had to do with setting 2 other form controls based on the first. Here is a picture: The table data is a simple […]

Continue Reading

How To Highlight The Current Row In A Continuous Form In 3 Steps

Somebody asked this question, and so I wanted to show how to do it here. It is really simple. As you may know, when you change the color for 1 row in a continuous form, every row will be affected! Not like Excel. So how do you fix this? Glad you asked…with VBA and conditional […]

Continue Reading

Peoplesoft To SAP Migration Via Access

I received an interesting question yesterday from a potential customer. They are migrating all their Oracle PeopleSoft data to SAP. (They are exporting from PeopleSoft into Excel, importing it into Access to tweak it, and exporting to csv from Access to upload to SAP) Basically, how to take 1 (PeopleSoft) row and make it into […]

Continue Reading

How To Declare A Variable With VBA Dim

To declare a variable, means to allocate a portion of the computer’s memory to hold the contents of that variable. “Dim” means “Dimension”, or “allocate a portion of the computer’s memory.” “Dim intNumber As Integer” – means that we need the computer to allocate 2 bytes of the computer’s total RAM memory to hold a […]

Continue Reading

How To Restart A VBA Loop Counter

This is related to an interesting question I received from an individual, and this processing example may help someone. Basically we are conducting a 10 day clinical study on a group of patients. We want to store the results of the finding in a database and reset the study counter when a result comes back […]

Continue Reading