• Skip to main content
  • Skip to primary sidebar

Ryan McCormick

access

Get Column Names From Access Database Table with VBA

August 11, 2017 by Ryan Leave a Comment

It has been a long time since I have added a VBA post, so here is something that I had to quickly put together for a little project that I am working on this evening. I have a really large table with a bunch of fieldnames that I need to query through to make some sample data for another project. I thought that it would be easiest to quickly grab all of the field names from … [Read more...] about Get Column Names From Access Database Table with VBA

Save File With File Dialog In VBA | Access

February 16, 2015 by Ryan 2 Comments

A couple of years ago, I posted code for selecting a file with VBA. This example demonstrates how to use the file dialog to return a Save-As string. VBA File Dialog Save-As '-------------------------------------------------- ' File Dialog Save-As '-------------------------------------------------- 'NOTE: To use this code, you must reference 'The Microsoft Office 14.0 (or … [Read more...] about Save File With File Dialog In VBA | Access

VBA Export to CSV From SQL With Save-As in Access

February 16, 2015 by Ryan 1 Comment

Although not as common as exporting to Excel, some projects may have a need to export in .csv format. Here is my solution. VBA Export With User Defined SQL Query This example uses the QueryDef function. Basically, the user passes a SQL query in, the file dialog prompts for where to save-as and the export is completed. 'To use file-dialog, you must add a reference 'to … [Read more...] about VBA Export to CSV From SQL With Save-As in Access

How to Find Fourth Thursday of November in VBA

June 18, 2014 by Ryan 2 Comments

I recently built a project where I had to count business days by excluding weekends and US Federal holidays. In my previous post: , my example used hard-coded dates. This new example can be adapted and re-coded to find the date of any specific weekday or holiday of the year without the need to hard-code. Public Function dThanksgiving(curDate As Date) As Date 'Define … [Read more...] about How to Find Fourth Thursday of November in VBA

Simple Mortgage Calculator Function | Excel, Access VBA

May 22, 2014 by Ryan 1 Comment

There are a lot of ways to calculate a mortgage payment in Excel. I honestly haven’t made any attempts to calculate a mortgage payment in Access using standard functions. There has to be a way, but for fun, I thought that I would share a simple function. To use this function, insert it into a module. For Excel, make sure you save your Excel document as a "Macro-Enabled" w … [Read more...] about Simple Mortgage Calculator Function | Excel, Access VBA

Next Page »

Primary Sidebar

Recent Posts

  • Force Quit Kill all Chrome Windows MacOS
  • SOLVED: Angular 6 CLI Karma Stuck in Single Run | Karma Stops Running
  • How to Manually Install Java 8 on Ubuntu 18.04 LTS
  • Remove VirtualBox from Ubuntu 16.04 Xenial
  • Clear all Node Modules Folders Recursively Mac/Linux

Recent Comments

  1. KKV on Webstorm adding spaces between imports and braces | JavaScript and TypeScript
  2. jusopi on Clear all Node Modules Folders Recursively Mac/Linux
  3. Qaisar Irfan on Clear all Node Modules Folders Recursively Mac/Linux
  4. mustafa on Remove VirtualBox from Ubuntu 16.04 Xenial
  5. Pourya on How to Manually Install Java 8 on Ubuntu 18.04 LTS

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in