Month | Title | Description | |
---|---|---|---|
2024 Goto Top | |||
15 Oct 2024 |
Relationships, Indexes |
Show Relationship and Index information for Access using a handy form and module you can import into any database. |
|
27 Sept 2024 |
Steps to Play YouTube Channel Videos |
Somewhat hidden is a way to play all videos uploaded to a YouTube channel. Lean how. |
|
21 Sept 2024 |
Clipboard |
Use VBA to set text, get text, and clear text on the Windows Clipboard. Works in Access, Excel, Word, PowerPoint, Visio, VBA applications, is fast, and can handle thousands of characters. |
|
21 Aug 2024 |
Toggle Bookmark Display in Word Document |
Show or not show bookmark indicators in the active Word document from Word, Access, or another VBA application. |
|
18 Aug 2024 |
Query To Word Bookmark |
Write the results of a query in Access to a new table in a Word document after a specified bookmark. |
|
26 July 2024
update 240728 |
Get Unique Filename |
Send path and filename to VBA function, modify filename if not unique, return path and unique filename. Optionally specify format for date/time stamp to add to filename. If unique name needs to be found, code can also increment a counter. |
|
11 July 2024
update 240718 |
Sort Array |
Sort String Array by any column using VBA. + simple bubble sort and video to explain the code + couple procedures to test. |
|
30 June 2024 |
Get Query Type + SQL |
VBA function to Get Query Type in words, and SQL to list query information for an Access database. |
|
8 May 2024 |
SQL to list relationships + VBA |
Updated/re-written: SQL for Query to list Relationships in Access database + VBA function. VBA function to convert the grbit field in MSysRelationships with flags into text that describes the relationship type. The relationships diagram is a great visual to show what's in your database, but when you want to get a list of the relationships, this SQL works great. |
|
23 March 2024 |
presentation for 'Tab Control, Unicode, and Format' |
Presentation for Access Lunchtime hosted by Maria Barnes. Download files and link to YouTube video. Format codes work in Excel too. |
|
27 Feb 2024 |
Tab Control |
The Tab Control is a handy way to organize information on forms. Download Access database with Tab Control examples on Access forms. |
|
14 Feb 2024 |
Unicode in Format Property for 'Checkbox' |
Instead of a checkbox control, use a Textbox to show and change a YesNo value. Use the FORMAT property to specify symbols (Unicode or not) to use. Set Color and Size. Download Access database with examples. |
|
20 Jan 2024 |
Word Count Fields |
Count the number of fields in a Word document or the number of fields that contain a particular property. |
|
2023 Goto Top | |||
28 Dec 2023 |
Modify Word Document Properties with Access |
Handouts using Access to modify Modify Word Document Properties for Access Pacific presentation. Easily and quickly change ActiveDocument properties in Word using Access. Update everwhere. Why use a Word Document Property? Why not bookmarks and/or merge fields. Sometimes those will be just fine. The purpose of understanding Document Properties is to give you flexibility. |
|
13 Nov 2023 |
PowerPoint Slide Index with Master Layout |
Make an index of your PowerPoint slides in the Debug window. Then copy and paste. Optionally show slide master layout name (default=true). Shows slide number and slide title -- good to help you prepare for presentations. Use the results for yourself and to also create a slide index in your presentation if desired. |
|
27 Oct 2023 |
Code Documenter for VBA7 |
Document code in VBA projects for Access, Word, Excel, and PowerPoint to an Access database |
|
13 Oct 2023 |
List Objects, Loop Access Files |
Did you lose something in one of your many databases? Where is it? Loop through all the Access databases in or under a path and copy what's in the system object table (MSysObjects) for each to the documentation database. See names, date modified, and object type for Tables, Queries, Forms, Reports, Macros, and Modules. Optionally, count records and more. Find what you're looking for or create documentation. |
|
3 Oct 2023 |
Rename associated Labels |
Rename associated Labels on active Access form Depending on how you create forms, label controls can have wonky names. Loop through each control on a form with VBA. If there's an associated label, rename it to correlate to the control it's tied to. |
|
5 Sept 2023 |
List Hot Keys |
List hot keys for the active form in Access. Message box shows a list of the characters that have been assigned. Immediate (Debug) window – Ctrl-G – also shows control name and caption. Not only see what's been assigned, but also discern what's available to use. Add-in to invoke with any Access database open — or if you don't want to install an addin, import its VBA module, or copy the VBA code to make a module in your application. + VBA procedure to bubble sort a passed array and correlate 2 other passed arrays. |
|
26 Aug 2023 |
Word Selection Summary |
VBA to get summary information about a Word selection such as where and what it is, and number of paragraphs, words, characters, bookmarks, comments, and fields. Runs from Word. |
|
12 Aug 2023 |
SQL Spacer |
Modify SQL to add spacing and line breaks where it makes sense for better and quicker understanding. |
|
11 Aug 2023 |
Save Unicode Characters to a File from fields in your Access database |
Do you want to make a file from data that has Unicode characters? How do you do it? A text file created by standard means won't properly write the information. Use an ADODB.Stream, and write from fields directly. |
|
14 July 2023 |
Update: API, Get Computer Name |
VBA to return Computer Name as a string. Used Peter Cole's brilliant free API Viewer to look up the syntax. |
|
30 June 2023 |
Draw Birthday Balloons |
Draw Birthday Balloons on an Access report using VBA. Fun colors and words for different celebrations. |
|
22 June 2023 |
Word MakeTable |
VBA code to create a table in a Word document with a specified number of rows and columns. Optionally add borders, shading for the first row, and specify column headings. The doument object is sent so you can use in Word or automate from Access, Excel, PowerPoint, or something else. ` |
|
17 June 2023 |
Updated: List Word Document Properties |
Word document properties give you a powerful way to substitute data, but the user interface to manage them is terrible! Updated the VBA to list document property names and values for the ActiveDocument (or modify) to let you easily control sorting, and if code will show Built-in or Custom properties or both. Important Built-in properties that can be displayed in Windows File Explorer and you can change are now bold. |
|
9 June 2023 |
Document Fields to Debug Window |
Do you ever need a quick list of field names? Here is easy VBA code to show that for a particular Access table or query in the Debug (Immediate) window. You can copy and paste to somewhere else or just reference it as you're coding. It also shows data type, size, and description (and indicates if field is AutoNumber). You can turn the extra information off if all you want are names. |
|
31 May 2023 |
Access Command Button Color Properties, built-in Color-Picker |
Make command buttons on Access forms come alive by changing colors as a user hovers over a button or clicks it. Popup the built-in color picker. Download sample database to use for picking colors you like. |
|
26 May 2023 |
Get Word to Recognize Characters from Images using a PDF |
Do you know that you can get Word to recognize characters from image files? This is a round-about way, but does a pretty good good job with clear images. It also makes other text editable. You can also open a PDF without images in Word to select and edit the text. |
|
20 May 2023 |
Go to New Record when Form Loads |
When you want a form to open to a new record use VBA in the form LOAD event. |
|
11 May 2023 |
Remove Line Numbers from VBA, by Geoff Griffith |
Did you get a database with line numbers and you don't have a tool to remove them? Here is code, written by Geoff Griffith, to replace Line Numbers in VBA from all classes and modules within the current database file with spaces. |
|
10 May 2023 |
Convert Embedded and Stand-Alone Access Macros To VBA |
VBA is easier to see, maintain, and document than macros. This code converts Macros To VBA for Access forms, reports, and stand-alone macros. |
|
29 April 2023 |
Report Gadgets in Access, presentation reference for Access DevCon |
Report Gadgets in Access, presentation reference for Access DevCon — pictures and links to pages for gadgets as well as a compilation database you can download with lots of VBA code to draw gadgets. |
|
22 April 2023 |
Draw a Rounded Rectangle in Access |
Draw a rounded rectangle on its own or as part of another drawing. Specify size, position, and optionally, color, line width, and how much rounding for the corners. |
|
14 April 2023 |
Draw Dial in Access |
Draw a Dial with a needle pointing to value. Colors of dial range from Red to Orange to Yellow to Green, and the needle visually shows fraction or percentage value on your Access reports. VBA procedure that's easy to call from code behind reports. |
|
8 April 2023 |
Draw a Stoplight in Access |
Draw Stoplights showing whatever color you want emphasized on your Access reports ... Green, Yellow, Red. VBA procedure that's easy to call from code behind your reports. |
|
1 April 2023 |
get MSysObjects in Another Database |
VBA to create SQL statement that gets MSysObjects in Another Database. |
|
21 Mar 2023 |
Word Field Shading |
Quickly change your view of field shading in Word between always, never, and when selected using VBA. Run code or assign keyboard shortcuts to trigger your macros. |
|
15 Mar 2023 |
Automate Word to create Font List |
Get a list of all the fonts installed and an example of what each looks like. Access database with a form that makes it easy to create a Word document. Specify a pattern for font names for even greater power to find exactly what you want. There are also buttons you can click for each major step so you can quickly go to the VBA code and learn how it works. |
|
9 Mar 2023 |
Word Set Margins |
After setting your Word document object, it's good to set the margins for it. This is done by passing the Word document object so PageSetup can be done. VBA procedure that's easy to call in Access as well as Word or any VBA code. |
|
2 Mar 2023 |
Loop folders, Link CSV files, Document structure using VBA |
Download ACCDB with VBA to browse to a folder, loop through the files (in subfolders too), link to CSV files using queries, document structure and calculate statistics. |
|
14 Feb 2023 |
Draw the Moon |
Draw the moon on Access reports using VBA in any phase, any position, any color, any size. |
|
14 Feb 2023 |
API - GetDeviceCaps updated |
Updated to work in 32 or 64-bit. My free CalendarMaker uses the GetDeviceCaps API to get the pixels per inch of the monitor for scaling. I thought it would work in 32 or 64 bit, but it didn't. Thanks to Peter Cole's wonderful free API Viewer now it's fixed to work in 64-bit too! |
|
8 Feb 2023 |
CalendarMaker with Day Colors |
Draw calendars on Microsoft Access reports. Specify day colors in your data query, in addition to the standard CalendarMaker features. Works in 32 or 64-bit. |
|
7 Feb 2023 |
CalendarMaker updated |
Updated to work in 32 or 64-bit. Draw calendars on Microsoft Access reports and PDF files. Specify month and year, number of months, first day for the week. Show data from your queries. Displays in your language. |
|
5 Feb 2023 |
Get Folder with Office File Dialog |
VBA to open a dialog box to browse to a folder and return the path. Optionally, specify a title for the dialog box. Code uses Office.FileDialog |
|
31 Jan 2023 |
Create SQL to Link to a CSV file |
VBA to create an SQL statement that links to a CSV file. |
|
30 Jan 2023 |
Query_Make |
Make a query or change the SQL of a query. Send query name and SQL. |
|
29 Jan 2023 |
CorrectName |
Replace bad and unwanted characters in a string with underscore. |
|
29 Jan 2023 |
Remove  from beginning of a text file using VBA |
When text files are saved in UTF-8 format but read like a regular text file, the  sequence at the beginning of the file can cause problems ... so remove it using VBA |
|
16 Jan 2023 |
Draw a Rainbow |
Liven up your Access reports with rainbows! |
|
12 Jan 2023 |
Unlink Fields in Word |
Convert updated fields in Word to text. |
|
2022 Goto Top | |||
25 Dec 2022 |
Draw a Christmas Tree on Access reports |
Draw a Christmas Tree with a star on top! |
|
22 Dec 2022 |
Draw the December (Winter in the North) Solstice on Access Reports |
Draw the Earth on its orbital path around the sun when it's at the position for the Winter Solstice in the Northern hemisphere. See how Earth's tilt causes part of the planet to not get any light, such as in Northern Norway. |
|
19 Dec 2022 |
Draw a Snowman on Access Reports |
Draw a Snowman! Make your Access reports more festive. Change colors to indicate different things. VBA procedure that's easy to call from code behind your reports. Store colors you want to use in a table to make things more flexible. If you can imagine it, Access can do it. |
|
16 Dec 2022 |
Draw Snowflakes on Access Reports |
Add fun snowflakes to your Access reports to make them more festive. VBA procedure that's easy to call. |
|
10 Dec 2022 |
Listbox with Open Word Documents |
VBA code that runs from Access to look at Word and get the list of open documents for the RowSource of a listbox. Select the active document. |
|
27 Nov 2022 |
Draw Dynamic Meters on Access Reports |
Visualize fractions and percentages! Call code to draw a dynamic meter on an Access report based on your data. Zero is at the top with values increasing clockwise. Value is a fraction greater than or equal to 0 and less than or equal to 1. Choose colors and size. |
|
25 Nov 2022 |
Filter a form or subform |
Filter a form or subform by user-specified values collected with checkbox, option group, combobox, or textbox. Concatentate criteria when it isn't Null using an exact value, LIKE operator and wildcards, or IN to match several values. |
|
18 Nov 2022 |
What is ASCII for each character? |
When strings don't look like you expect, use VBA code to show each character, its ASCII value, and position in the string. Write results to the Debug/Immediate window. |
|
11 Nov 2022 |
Unique Values using Access Form |
Use a control BeforeUpdate event to ensure that a value is unique, not a duplicate. If another record has the value already, give the user a choice of undoing changes and moving to that record, or staying to edit the value |
|
5 Nov 2022 |
Basic SQL Syntax |
Syntax for basic SQL statements in Access. |
|
28 Oct 2022 |
SQL to list Expressions in queries of an Access database |
Get a complete list of expressions used in all queries of an Access database using the MSysObjects and MSysQueries tables. |
|
October 2022 |
SQL to list Relationships in Access database |
The relationships diagram is a great visual to show what's in your database, but when you want to document the relationships, here is some SQL you can run. |
|
October 2022 |
CalendarMaker — updated |
Added 2007 Download + another output option to send to Printer. Create calendars as Microsoft Access reports, or PDF files (2010+). Specify month and year, number of months, first day for the week. Calendars display in the language defined in your Windows Region settings. Print however many months you want, such as 12 for a full year, on one or more pages depending on number of months and calendars per page. Show data from your queries. Open calendars in Access, Print, or, if you're using Access 2010 or greater, a PDF reader (or web browser). |
|
October 2022 |
Draw Shortcut Keys on an Access Report |
Create a report with Access and VBA shortcut keys. Write text using the Print command. Draw rectangles using the Line command. Download database, look at VBA, and get a useful shortcut key report for Access and VBA. Updated 24 October 2022. |
|
October 2022 |
SQL for Query to List Object Names in Access database |
Create a quick list of object types and names in your database. Show names of tables, queries, forms, reports, macros and modules in a list you can look at and copy to somwhere else. |
|
September 2022 |
VBA to make PowerPoint Slide Index |
Before your PowerPoint presentation, run VBA to create an index with slide number and title. If you want to go to any slide during your presentation, you can just type its number (if you know it!) and press ENTER |
|
September 2022 |
PowerPoint Presentation Shortcut Keys |
Helpful shortcut keys to know before you give a PowerPoint presentation |
|
September 2022 |
Modern Chart Reference |
Extensive reference for Modern Charts in Microsoft Access with properties, settings, enumerations, and more so you see what you can do with modern charts, and how to create them. |
|
September 2022 |
Word VBA to list names and values for BuiltIn and Custom Document Properties |
Document Properties in Word are a great way to substitute data in your document all over! ... in many places or just one. You can also specify format when inserting such as how to write dates -- and further, select it and make it look different. VBA code you can run from Word and to get a list of the built-in and custom properties in your document, and steps to use them. |
|
August 2022 |
VBA to Draw Lines and Boxes on an Access Report |
Draw on Access reports! VBA examples using the report Line method to draw lines and boxes. Draw in a detail event to visualize data on each record, and to conditionally draw a border around the section. Draw in Page event for page border and dividing lines. |
|
July 2022 |
Sort Form by Column of Combo Box |
No need to add more to record source of a form to sort ... if a combo box can see it, you can use it! |
|
June 2022 |
VBA to Draw Circles for Yes/No Values on an Access Report |
Practical application with sample database and VBA listing. Visualize Yes/No data with something better than a tiny checkbox. Use the VBA CIRCLE method to draw circles in the Detail section of an Access report so the drawing changes according to the data on each record. A simple circle can do a lot of different things, and this is just the tip of the iceburg! |
|
June 2022 |
Report Draw Reference |
Massive Reference for VBA Syntax to draw on Access reports.
|
|
May 2022 |
Word Automation VBA Code |
Downloads and Documents with VBA syntax to automate Word and create beautiful documents from Access, or Excel, PowerPoint, and even Word. |
there is lots of VBA and Tools posted not on this list ... didn't start consolidating it here till recently. Look under VBA code and tools for more.
Quick Jump SFMag
Below are links to a monthly column I wrote about Microsoft Access for a few years, published in Strategic Finance Magazine.
Access articles in SFMag
from the beginning, since there are often a few articles in a row building on the same sample database
Each is an important lesson for Microsoft Access. Many have sample databases you can download to do everything yourself. The word limit was about 820-850, with a couple graphics. Chopping back was often a challenge ... sifting it down to the essentials -- enough to get a foothold so you can look up more.
My# | Issue | Article Title | Description |
---|---|---|---|
2016 Goto Top | |||
1 | Jan 2016 |
Creating a Graph |
Create a chart with Microsoft Access. To create a query that compares sales for each month for 2 different years, combine the results from two queries that each filter the data by the specified year. The resulting query lines up data for the chart. Add a chart control to the design view of a form using the wizard. Then modify the chart control properties to get what you want. |
2 | Feb 2016 |
Calculating Running Sums |
Running sums are easy in Excel, but how do you do them in Access? Create a running sum using the built-in DSum domain aggregate function. For better performance, VBA can be used instead. Both methods are shown. |
3 | Mar 2016 |
Chart a Secondary Axis |
Charts are a great way to visually show data, but what do you do when the scales of the values are different? Use a secondary axis, and format charts for a better look. |
4 | Apr 2016 |
Stacked Column Chart |
A stacked column can be used to show how values break down by category. See how to use a crosstab query for the data source of a chart. |
5 | May 2016 |
Grouped Report from a Crosstab Query |
Use a crosstab query for the source of a grouped report Display up to 10 levels of sorting and grouping on a grouped report, and show subtotals and other calculations on each level. Use the report wizard for the basics then see how to add additional calculations to sum columns of the crosstab. |
6 | Jun 2016 |
Control Names in Calculations |
Add calculated controls to a grouped report to show percentages related to totals and subtotals. See a logical way to name so that the formulas in control sources are more clear. |
7 | Jul 2016 |
Building a Menu |
See how to create an unbound form as a menu to navigate and open objects in your database. Add title and buttons. Use the Command Button Wizard to open reports and forms. |
8 | Aug 2016 |
Enhancing a Menu |
Organize controls on a menu form using a tab control. See how to collect start and end dates and use criteria specified by the user to filter reports. Set a form to automatically open when the database opens. |
9 | Sep 2016 |
Use VBA to Modify a Crosstab Query |
See how to change macros to VBA code. Construct criteria and modify the SQL statement for a crosstab query so that records are limited before the crosstab occurs. Then use VBA to open the report reflecting the specified criteria. |
10 | Oct 2016 |
Creating a Grouped Report |
Often times, you will use a query to line up data from more than once source. You can then use a grouped report. Easiest may be to start with the wizard, but the formatting isn't pretty, so change it. Best-fit controls. Hide controls with key fields. Move controls from the report header to the page header. Delete unnecessary label controls and use properties to lines things up. |
11 | Nov 2016 |
Refining the Sales Report |
Modify report design to make the layout more efficient and easier to read. Concatenate text and sums. Use a formula with IIF to see if an 's' needs to be added to the end of the record count description. Match indents by setting the LEFT property. Make sure there is at least one record after a group heading when pages are rendered. Set colors for sections. Add a command button to the menu form to open a report, and consider criteria the user may have specified. |
12 | Dec 2016 |
Customize the Quick Access Toolbar (QAT) |
One of the best things you can do to work more efficiently is to customize the Quick Access Toolbar (QAT). Learn useful command to add and how to organize them. |
2017 Goto Top | |||
13 | Jan 2017 |
Database Tables |
Designing a successful database requires planning. Think about the data you have to put in, and structure it well so that what gets built on top is stable and flexible. How to decide how to organize fields into tables, and then build the tables you need. |
14 | Feb 2017 |
Data Types |
The building blocks of a database are the fields in each table. An important characteristic of a field is its data type. Learn about the different data types and when to use them. |
15 | Mar 2017 |
Numbers |
There are many types of numbers - whole numbers, numbers with decimal places, numbers with currency symbols or percentage signs, and data that looks like a number but isn’t to data that looks like text but is a number. Take a deep dive into the number data types you can choose. See ranges and limitations. Consider accuracy and magnitude when you choose data type. Modify basics number formats for your country using the Windows Region Settings. |
16 | Apr 2017 |
Formulas |
Formulas are commonly referred to as expressions in Access. See the different parts of an expression ... functions, operators, references (identifiers), and/or constants. Formula examples with number, date, and string results. |
17 | May 2017 |
The Expression Builder |
The Expression Builder helps you construct formulas in Access. It can be launched from many places, such in queries and tables for calculated fields, on forms and reports in control sources, default values, validation rules, and more. The Builder Button (...) opens the Expression Builder when it applies. Make text larger and smaller, build expressions, use built-in functions and see what parameters they need, and lookup information. |
18 | Jun 2017 |
Aging Accounts Receivable |
When you are tracking and analyzing accounts receivable, see how to dump amounts into categories like 1-30, 31-60, 61-90, 91-120, and 120+ days past due using DateDiff and IIF. Modify format code to show the due amount how you wish or the words "Not Overdue". See how to use the Totals Row that is available for all datasheets if you simply turn it on! |
19 | Jul 2017 |
Graphs in Query using Unicode |
Even though queries show text,
did you realize you can also show bar charts?
Use block characters in Unicode to visually display data!
|
20 | Aug 2017 |
Visualizing Value Changes with Unicode |
Continuing on with using Unicode characters
to help you visualize your data in a query,
which normally can't have graphics,
see how to use up and down triangles, and circles,
to indicate if a value has gone up, down, or stayed the same.
Use a query to compare a value
to the value in a previous record for the same field.
Enhance performance using a subquery instead of DMax
in the SQL statement for the query to get the record to compare to.
|
21 | Sep 2017 |
Create a Shareable Calendar |
Do you have data involving dates? See how easy it is to show your data on a calendar with a free tool you can download. Use a query to line up your data, and then presto! Calendar! |
22 | Oct 2017 |
Creating a Combo Box |
Combo boxes are a great way to let your users pick something from a list. They can also store one thing, such as a number, and show users friendly text. Learn important combo box properties to know! |
23 | Nov 2017 |
Main Forms and Subforms |
Learn about using a Mainform + Subforms for Payments in Microsoft Access to find and enter data for customer payments on orders. Synchronize subforms with LinkMasterFields and LinkChildFields. Calculate sum and total number of orders and payments, and the balance due. Display the company logo. Learn how to undo creating a new record, shortcuts for entering data, set the Enter key behavior setting in the Access Options, and anchor controls so they stretch and shrink as the user resizes the window. |
24 | Dec 2017 |
Subform to Display Calculations |
Use a subform to show the balance for a customer on a form for entering customer payments. Construct the underlying query to do calculations. Add a subform to a main form. Use properties of the subform control to specify how the subform is linked to the main form with Link Master Fields and Link Child Fields). Name is what it’s called. Width and Height specify size. Top and Left specify location. Appearance is controlled by properies such as Border Color, Border Style, Special Effect, and Visible. Locked, Enabled affect whether user can modify and select values. |
2018 Goto Top | |||
25 | Jan 2018 |
Using SQL in the Row Source Property |
SQL. Get comfortable with SQL -- what it is, and how to write/read it. SQL is Structured Query Language and defines the rules you need to use to get data such as: SELECT myField1, myField2 FROM myTable Row Source is a property of a combo box or list box that specifies where the rows of data for the list will come from. It is often an SQL statement or a query, and can also be a table. |
26 | Feb 2018 |
Change a List Box Using VBA |
VBA. Dynamically modify the contents of list boxes on a form by changing SQL for Row Sources using VBA so they change each time a customer changes. If you've never written code before, read this article and get started. |
27 | Mar 2018 |
UDF: User-Defined Functions |
UDF. User-Defined functions are a great way to make things easier to understand, even with complex logic. If you can create a formula, then you can also write a function using VBA. The functions you write can be used in queries, forms, reports, and called by other code. Learn how. |
28 | Apr 2018 |
Use Excel Worksheet Functions in Access |
Excel has a lot more built-in functions than Access ... and what Excel has, Access can use! Look at the VBA code behind a form that collects data for Excel's PMT function to calculate the monthly payment for a loan. Enhance performance and readability using With. Download the PMT Calculator tool. |
29 | May 2018 |
Wrapper Functions |
Create a wrapper function in VBA to call Excel so that Excel Worksheet functions can be used in calculated fields of a query in Access. Format columns in a query to show values in red, blue, and other colors. |
30 | Jun 2018 |
Dates and Times |
Dates and Times. Why isn't the base date for Access the same as Excel? See how date and time values really are numbers, and how doing math with them is easy. Data entry tips and shortcuts. Calculated field that creates a date. |
31 | Jul 2018 |
Date (+Time) Format |
Date (+Time) Formatting can be used to display what you want for a date. Even though dates are stored internally in Access as numbers, format symbols (placeholders) can be used to display dates (and times) the way you want them to look. Along with standard information—such as year, month, day, hour, minute, and second, learn about other information such as quarter and day of year that you can also show. |
32 | Aug 2018 |
Windows Region Settings |
Windows Region Settings can affect how data is displayed. Note differences between short dates, long dates, currency, and long time values for a few regions. ACCDB download has VBA to read international settings for Windows using Excel since Access doesn't have a direct built-in way. |
33 | Sep 2018 |
Localized International Information in Windows |
How to get local values of international settings such as currency symbol, whether 12 or 24 hour clock is used, am/pm indicator, date order, measurement system, and various separators such as for date, time, decimal, and thousands. Automates with Excel to get some of the values. ACCDB download with VBA. |
34 | Oct 2018 |
Highlight the Current Record |
How to Highlight the Current Record in an Access form that shows multiple records. Uses a control to keep track of the primary key, some conditional formatting, and a little VBA. ACCDB download with VBA. |
35 | Nov 2018 |
Managing Contacts |
Holidays remind us to keep tack of
Contact information like
names, addresses, phone numbers, email address, and
websites;
lists and
categories
... for friends, family, companies, organizations, clubs ...
Make lists for who you want to send a card or gift to,
or keep in touch with for another reason.
Difference between using & (ampersand) and + (plus sign) in expressions. Combine all the name parts like "Joe" and "Smith" to make a full name. IsNull function. By storing date of birth in year, month, and day fields, you can fill what you know. If DateSerial can make a actual date, it does, and then you can also find out the day of the week someone was born, such as Tuesday or Saturday, which is nice. Assign each contact to as many Lists (that you define) as you like. Organize contacts into groups by specifying a main category such as friend, family, colleague, service, supplier, manufacturer, club, or other interest. Relate contacts to each other by specifying a "Head Contact" such as a company, club, or head-of-household. |
36 | Dec 2018 |
Cross-Reference Contacts and Lists |
Use a cross-reference table to create a many-many relationship so one contact can be on many lists, and each list can have many contacts. See how a self-join works, where one record in a table relates to another record in the same table. VBA to swap subforms to show more records or more detail. Assign hotkeys for quick keyboard jumping by putting & (ampersand) before the character to use with ALT. |
2019 Goto Top | |||
37 | Jan 2019 |
Popup Related Forms |
... continuing with the 'series' started in November for managing contact information... Instead of a main form with a lot of subforms, maybe you want to popup forms to add and edit related information -- this also reduces screen space that is needed. The main form can just then have links to other forms, and can be continuous too. See how to write VBA to popup related forms that are synchronized to the record displayed on the main form. |
38 | Feb 2019 |
Partition Function ... Age Overdue Accounts |
Partition is a highly useful but little-known function in Access. Group numbers into ranges and determine statistics. A great example of a practical use is to age overdue balances into 30-day buckets, and report the sum of each; which would otherwise require several expressions. |
39 | Mar 2019 |
Random Numbers |
Use the Rnd() function to return a random number. In this example, we pick 3 winners for a monthly contest. Store the generated random number in a field, and use an SQL statement to update it. Next, make a query to sort by the random number, and limit the results to the top 3. |
40 | Apr 2019 |
Import Excel Spreadsheet |
Steps to import data from Excel using the import wizard. You may want to change some things. For instance, Access chooses double-precision for numbers even if they don't need a decimal point. What can you do about that? Look at each column of data that is imported ... what is it? and what does it relate to? |
41 | May 2019 |
Append and Update Data from Excel |
Import data from Excel and Append to an existing table. After each sheet is added, run an update query to do a calculation. |
42 | Jun 2019 |
Organize Excel Import Data into Separate Tables |
Shuffle data to other tables after it is imported from Excel. Separate information when data is put into Access. More append queries. |
43 | Jul 2019 |
Normalize Import Data from Excel |
Often, data coming from Excel is flat, or not structured. "Normalize" so that data is structured the way that it really is in the real world. 'Visualize' it ... see it. Append queries to add import records. Create foreign key values from primary keys in tables that aren't the one you are adding records from. |
44 | Aug 2019 |
Using VBA’s Split Function for an Update Query |
Lots of times when you import data, it needs to be parsed into different fields. VBA has a wonderful function called Split that can separate data when there is a known delimiter for the parts. Learn how to make a user-defined function (UDF), and a little foundation on VBA code. Modify the table design to add more fields. Use your UDF in an Update query. |
45 | Sep 2019 |
Undoing Updates |
When you change data using an Update Query, do it in steps that can be undone, and verify calculations before results are used. Always select what you think new values should be before you actually make changes. Select query to see calculated values and make sure logic is good! Then change to an Update query and run it. If you want to modify the logic for something you missed before, run a reset query that clears the new values. That won't, of course, bring back values that might have been overwritten. For that, you'd need to link to a backup table. Once logic is adjusted, run the first Update query again. You can't use a totals query in an update query. You can use domain aggregate functions such as DSum and DCount. All the domain aggregate functions use the same syntax: DSum( "Expression", "Domain" [,"Criteria"] ) where DSum could be something else like DMax, DMin, or DCount. Expression is a field or formula. Domain is the name of a table or query. Criteria is optional and limits the records. |
46 | Oct 2019 |
Data Structure |
Once you start building a database in Access, you’ll find yourself wanting to add more and more functionality. The best data structure is one that’s flexible and reflects how the objects that the data is based on exist in real life. This will make it easier to expand the database and add more to it as needs arise. When designing an Access database application, pattern the structure of tables, fields, and relationships after the real world. Change structure as you learn more. |
47 | Nov 2019 |
Using a subreport multiple times |
When you’re building a report, it often makes sense for a main report to show a subreport multiple times. For instance, when the main report if for a student and the subreport is their classses and grades for each year. This article exposes one of the powers of Access to relate similar data for different criteria. |
48 | Dec 2019 |
Fractions and Greek characters |
It's nice to be able to show whatever characters you want, whether they're on the keyboard or not. For instance, if you're writing trignopmetric formulas, good to show the symbol for π (pi). It's also nice to use a numbers table to create data. This article shows how to make a handout for students showing values for Sine, Cosine, Tangent for various angles of a circle. I love math! Since this monthly article is about Access, a query is created that can be printed and passed out to a class to learn about the major angles of a unit circle. |
2020 Goto Top | |||
49 | Jan 2020 |
Making a Calendar |
Happy New Year! With each new year, we think about resolutions and planning for a successful future. Learn about a tool I created to make calendars that I share freely with the public, the CalendarMaker. I've spent a lot of time on it, but want to add more in the future. Print a calendar on any report in any position and size, in the language you have installed for Windows, and show information from your database on each day. Start weeks with any day you want. |
50 | Feb 2020 |
Access Files |
Know what folder your Access database is in, and what the file is named. Default file names. When an Access database is being used, there will be an LACCDB (or LDB) file in the same folder as the database. The Lock ACCess DataBase file keeps track of the users who have the database open, and prevents multiple concurrent users from simultaneously changing the same data. Display file extensions in File Explorer, and use Details view so you can sort and display the most recent files at the top of the list. Add date code to file names since Access updates the file date/time even if you don't change anything. |
51 | Mar 2020 |
Organizing Project Files |
Because the purpose of a database is to logically organize information, it makes good sense to organize the information related to the database too. Learn tips from world-class Access developers such as Arvin Meyer and Dale Fye, see examples of file folders to create, and discover what is most important. Learn how you can keep your data secure when you're working with sensitive information. |
52 | Apr 2020 |
Finding Records |
Create combo boxes in your form header sections to quickly find records. Use information from the table with the record you're looking for, or display information from a related table. For instance, if you have a related table for contact phone numbers, you can lookup a contact by phone number. This gives you great flexibility and saves time. |
53 | May 2020 |
Quick Access Toolbar |
Learn how to customize the Quick Access Toolbar, or QAT, which gives you a handy way to access the commands you use the most, saving time and mouse clicks. Each of the Microsoft Office products has a QAT. Some of the commands, like SaveAs, aren't specific to Microsoft Access -- I add them to all my Office QATs ;) |
54 | June 2020 |
Input Mask to enter GL Codes |
The Input Mask property in Access can be used to validate the type of data with each character typed. General ledger (GL) codes, used to describe the nature of each transaction, are typically designed with groups of letters or numbers separated by dashes, spaces, or other characters. In Access, you can use an input mask to make it easier to enter information with a pattern, such as a GL code or phone number. |
55 | Aug 2020 |
Mail Merge from Word using Access Data |
Write a letter in Microsoft Word and personalize copies with data from Access in a mail merge. Data Souce can be a table (always on list) or a query. |
56 | Oct 2020 |
Add Data to a Combo Box using NotInList VBA |
How to add new values to another table when what the user wants isn't on the list of choices. VBA code for the NotInList event that calls a generic procedure to add the record using an SQL statement. The NotInList event is a quick way to add values to whatever table provides the list for a combo box. |
57 | Nov 2020 |
Managing Hierarchical Data |
Anytime two items, objects, or ideas of the same type have a relationship, you have hierarchical data. For instance, people have parents, accounts have a chart of accounts, and parts are organized into assemblies. These kinds of relationships appear often in Access databases. The simplest way to store a hierarchy is where each item has a single parent, and each parent can have zero or more children. A simple hierarchical relationship can be defined by creating a foreign key field in a table that relates to its own primary key. |