Code to help you debug SQL code – POPQuery

I use SQL in my code a lot, I'm not a fan of creating queries and then referencing them in my code  since users may delete or change them. Often I build SQL strings and then I need to debug them in the query Access grid, in the past I would get the value of my SQL string in the immediate window and [...]

2010-10-22T16:03:51-05:00October 22nd, 2010|

Maximize the use of TempVars in Access 2007 and 2010

The TempVars collection has the ability to save developers time, improve the reliability of your programming and provide you with new ways to share information across your application. TempVars were introduced starting in Access 2007 and represented a major addition to the arsenal of tools for profe [...]

2010-09-16T20:43:03-05:00September 16th, 2010|

Avoid Trust Center Issues with Developer Tools

When your're ready to publish your Access 2007 database to your clients network you will most likely encounter those pesky security dialog boxes. They can be easily taken care of by clicking through the trust center and adding trusted locations, but what if you need to deploy to a lot of PCs? Are you going to go to each one and labor throug all those dialog boxes? Read on to discover Microsoft's Access Developer Tools

2021-03-03T14:42:09-06:00September 10th, 2010|

Inserting a record in SQL Server and retrieving key ID

There are many ways to insert records and retrieve that record key value, this approach will probably be among the quickest since all the processing occurs on the server, not in Access. The technique uses ADODB recordsets to fetch records from SQL Server. CODE: Private Function CreateDatabaseRecord( [...]

2021-03-03T12:51:17-06:00August 3rd, 2010|

Tips for designing SQL Server tables for Microsoft Access

We LOVE using SQL Server with Access! I frequently mention that SQL Server Express was the best thing to happen for Access, the two combined have the best 1-2 punch in the industry. I encourage you to explore using both technologies, or better yet, hire us to do the legwork. Here are some table desi [...]

2016-12-22T03:39:18-06:00July 24th, 2010|

Map route on Yahoo Maps with Addresses in Access

Yahoo maps is great at mapping out a route you entered through the browser, but what if you need to map the addresses using a pre-defined route in Access? This tip will show you how to build the URL on the fly and then pass it along to the default browser on your PC. Note: for the same technique usi [...]

2013-09-27T19:22:39-05:00July 21st, 2010|

Map route on Google Maps with Addresses in Access

Google maps is great at mapping out a route you entered through the browser, but what if you need to map the addresses using a pre-defined route in Access? This tip will show you how to build the URL on the fly and then pass it along to the default browser on your PC. Here's the code: Private Sub cm [...]

2010-07-21T16:49:08-05:00July 21st, 2010|

Bug will occur when using datasheet view in a sub form.

Here's a bug you will come across when using a subform in datasheet view: "Property Not Found" Here is the code that will trigger the criptic message from Access: Private Sub MyField_BeforeUpdate(Cancel as Integer) if somecondition = True then Msgbox "Your message here, usually you can't save the re [...]

2010-07-13T19:51:21-05:00July 13th, 2010|

Access function to return day of the week

Sometimes you need the actual day name of the date and not the numeric equivalent, the following function will do that for you: Public Function MyWeekDayName(dteDate As Date) As String 'Will return "Monday", "Tuesday", etc. based on the date supplied MyWeekDayName = WeekdayName(WeekDay(dteDate), Fal [...]

2010-07-13T19:50:36-05:00July 13th, 2010|

Part 3: Why I grew to love Microsoft Access Data Projects

Note: This is part three of a series of articles on Access Data Projects, Click to see Part 1 Click to see Part 2  Why I learned to love Microsoft Access Data Projects As a seasoned Access programmer, it seams all I do lately is Access with SQL Server, in part because of the great combination of SQL [...]

2010-06-21T16:45:45-05:00June 21st, 2010|

Launch Email Window from Form

If your database contains an email field, you can easily modify your form so that users can single click to create an email in their default email program. First, modify the control's Display as Hyperlink property to Always, second, modify the control's on click event with the following code:     If [...]

2010-06-17T16:43:58-05:00June 17th, 2010|
Go to Top