ms-access-query

How to setup cascading comboboxes in datasheet subform

In this post we will discuss how to setup cascading comboboxes in your subform. This post was in response to this issue that someone was having: So the real key to solving this issue is the ways the tables are setup. Here are the tables: -tblCashVouchers -tblCashVouchersDetails -tblAccountNames -tblAccountTypes tblCashVouchers tblCashVouchersDetails tblAccountNames tblAccountTypes The 1st […]

Continue Reading

How do I create a query between two dates in Access?

This post will show you how to create a query between two dates in Access using a query and in VBA. We will also show the results of the query in a report format, like shown in the image. The report dates are the selections from the parameter form, and can be accomplished with both […]

Continue Reading

How To Make An Access Report Based On Form Inputs

Hi, this post is on “How To Make An Access Report Based On Form Inputs”. Many times you want your report based on dynamic criteria. In this post I am going to show you how you can generate a report based on data selected from combo box inputs on your form. It’s easier to do […]

Continue Reading

How To Calculate Date Intervals With VBA DateAdd

One of my clients ask me to design a little utility to operate like the Outlook appointment recurrence feature. This the first basic step, so I wanted to share how I did it. I have a basic form where I’ll probably be adding more variables, but the functionality basically works like this: I have an […]

Continue Reading

Client Side Storage Access And WebSQL Database Part3

In this post I am showing how you can make your webform more user friendly. Sub GenerateContainmentInspectionsHTML() Dim intRandomDB As Integer Dim intSeed As Integer Dim strDB As String ‘this is seed value for the RND function’s random number generator. Randomize ‘Int ((upperbound – lowerbound + 1) * Rnd + lowerbound) intRandomDB = Int((2500 – […]

Continue Reading

Client Side Storage Access And WebSQL Database Part2

In this revised procedure I will create the SQLlite (WebSQL) database to hold the Access query contents and then display them on a web form in a table format. (don’t be concerned with the colors in the following code:) Sub GenerateContainmentInspectionsHTML() ‘HERE YOU ARE MAKING THE DATABASE FOR THE INSPECTIONS Dim intRandomDB As Integer Dim […]

Continue Reading

How To Create A Local Web Page With Access DB Data PT1

This is going to be a multiple part blog post, but here I am clicking a command button on a form and then taking the data from a query called “qrySecondaryContainmenttodrain”, and creating a html page called “containment_inspections.htm”. (You will have to modify the query and the html page so it will fit your need) […]

Continue Reading

Access Parameters Using TempVars

Access TempVars are like using query parameters. TempVars seem to be like Session variables for your Access application. In the past I was using hidden forms to store parameters for my queries, but TempVars can be useful to do the same thing. I have seen this in use and wanted to share it with you. […]

Continue Reading

MS Access VBA – How To Add A ‘Select All’ Option To A Combo Box

Normally with a combo box, you can select only 1 item in the drop down list. But what happens when you want to “Select All” the items in the list? I have done this 2 different ways, 1 way is to put a checkbox on the form, called “All”, and then have the combo box […]

Continue Reading

MS Access Running Counter In Query

This video is part of a solution to an interesting question that I know most developers have faced or are facing… “How can I number my rows in an Access query?” tblRunningSum: Lists numbers starting with 8, and shows how qryIncrement can start at 1 and increment this count from 1 to 10. tblNumbers: Gives […]

Continue Reading