
Introduction to Access programming - Microsoft Support
Learn about using macros and VBA code in Access databases to program and automate your applications.
Order of events for database objects - Microsoft Support
When you open a report that is based on a query, Access triggers the Open event for the report before it runs the underlying query. As a result, you can set the criteria for the report by using a macro or …
Create a macro that runs when you open a database
If you want to perform a particular set of actions every time that an Access database starts, you can create an AutoExec macro. For example, you might want to automatically maximize the application …
InStr Function - Microsoft Support
Use InStr in VBA code Note: Examples that follow demonstrate the use of this function in a Visual Basic for Applications (VBA) module. This example uses the InStr function to return the position of the first …
IIf Function - Microsoft Support
In Access, if you need to calculate or display a value based on a condition, use the IIf function. The IIf (Immediate If) function is similar to the If function in Excel.
Use wildcards in queries and parameters in Access
ANSI-89 describes the traditional Access SQL syntax, which is the default for Access databases. The wildcard characters conform to the Microsoft Visual Basic® for Applications (VBA) specification, not …
DLookup Function - Microsoft Support
In Access desktop databases you can use the DLookup function to get the value of a particular field from a specified set of records (a domain). Use the DLookup function in a Visual Basic for Applications …
DMin, DMax Functions - Microsoft Support
Use the DMin and DMax functions in a Visual Basic for Applications (VBA) module, a macro, a query expression, or a calculated control. For example, you could use the DMin and DMax functions in …
DateAdd Function - Microsoft Support
Note: Examples that follow demonstrate the use of this function in a Visual Basic for Applications (VBA) module. For more information about working with VBA, see Access VBA reference.
Array Function - Microsoft Support
Note: Examples that follow demonstrate the use of this function in a Visual Basic for Applications (VBA) module. For more information about working with VBA, select Developer Reference in the drop-down …