Sunday, March 8, 2026

How Changing Clocks Causes Problems and Why Daylight Saving Time Is Dumb for People and Software

Ah, yes. It's that time of year again where, for absolutely no rational reason, society collectively pretends the planet is suddenly spinning at a new speed and we all have to scurry around fixing clocks. Daylight saving time: the gift nobody asked for, but the burden we're all forced to carry. Twice a year, we're all running around like we're in a low-stakes action movie, smacking buttons on microwaves and car dashboards like we're defusing bombs. Somewhere, a digital clock blinks "12" in eternal protest. And honestly? I'm starting to admire its tenacity.

Let's be honest - no matter how many smartphones and smartwatches you own, there's always some rogue appliance in your house still living in the wrong century. If you've ever finished resetting all your gadgets only to discover the VCR is flashing "12:00" (and you don't even have any tapes left), welcome to the never-ending daylight saving struggle. It's like an involuntary scavenger hunt, and nobody gave you a map.

So, why do we do this? Why, in a high-tech world, do we all ritualistically adjust time as if the sun cares? It's not even a global effort - Arizona and Hawaii noped out ages ago, living life on their own time. Meanwhile, the rest of us are stuck waiting for Congress to get its act together. Florida even passed the so-called Sunshine Protection Act to keep daylight saving time year-round. Everyone cheered, and then… nothing happened. Because, surprise! You can't just stop the clock games without federal approval.

Even with bipartisan agreement - it's hard to find something both sides of Congress can agree on, but screwing up our sleep cycles is a rare unifier - we're still at the mercy of inertia in Washington. President Trump even said he supported ditching the twice-yearly time shift. Yet here we are, still wondering what time it really is twice a year, every year.

All this fuss wouldn't even be that bad if it had any real benefit. The idea originally popped up in 1908 in Germany and Austria to save fuel during the war. The U.S. codified it in the Uniform Time Act of 1966. Contrary to popular belief, this wasn't to help farmers - the ag industry lobbied against it. Actual quote: they hate it. So, the "think of the farmers" excuse? Myth. Busted.

In practice, daylight saving time screws up everything. Your sleep? Toast. Your sanity? Shot. In the days right after the switch, heart attack rates go up and productivity crashes. Trying to keep IT systems and databases in sync with actual time versus time on the clock? Good luck. Just ask any poor soul who had to debug scheduling software during a DST changeover. (And yes, even Apple messed it up. iPhone users will remember the clock glitch - a rare victory for Android fans.) If you use Excel or Access to track work hours, the safest route is using UTC (Universal Time), also known as Greenwich Mean Time, for all your records. That way, you won't have to explain why time appears to jump or repeat itself in your spreadsheets.

Of course, it's not just about computers. Resetting the oven, car, coffee maker, and wall clocks every time is just tedious - and there's always one you forget. Honestly, for a week or two each year, I just give up and mentally add or subtract an hour every time I look at the clock. The VCR is my nemesis, but at least it doesn't talk back (yet).

So what can you actually do about it, other than grumble? You can write to your congressperson. Yes, it's as exciting as it sounds, but if enough of us do it, maybe something will change. Want to make your voice heard? Google "write to my congressman." Input your zip code, find their contact page, fill out the form, and tell them how dumb the whole thing is (politely, of course). If you need inspiration, I've already written a letter - you're welcome to copy it and personalize it to your liking.

While we're at it, let's get ambitious. Not only does the world need to standardize dates (year, month, day - just do it already), but maybe it's time to consider adopting the metric system, a 28-day calendar, and giving New Year's Day its own holiday outside the calendar. Make Election Day the leap day and give everyone a day off to vote. I mean, why stop at clocks when there's so much more to fix?

Long story short: daylight saving time is pointless, outdated, and disruptive. The solution isn't changing clocks, but just changing what we do. If it's too dark for the kids in the morning? Start school later. Want more sun after work? Start earlier. Golfers concerned they'll miss the 18th hole before sunset? Tee off sooner. It's way easier than wrangling with Congress.

And yes, if you've got a clever meme about daylight saving time, send it my way - I love seeing them, and the best ones just might end up in my next video update.

For the full, ever-expanding director's cut of my "daylight saving time is dumb" rant, check out the video above. In the meantime, keep spreading the word, write your representatives, and maybe - just maybe - one day we'll stop this temporal madness for good.

Live long and prosper,
RR

Why Microsoft Access Refuses to Calculate a Form Footer Total That Should Work - QQ #82

Ever try to total up a simple sum in your Access form footer and wind up with one of those classic pound errors instead? You'd think adding up numbers would be the easiest thing in the world, but Access has its own sense of humor. Let's dive into some of the sneaky traps you might fall into with totals, combining lists from different tables into one sexy combo box, why something that works for you may blow up on a client's PC, and some quick fixes for those "just make it do this automatically" requests. Oh, and a couple other classic beginner headaches that everyone hits at some point.

The real fun starts right away once you're actually trying to build useful forms - like, for example, picking people (customers, vendors, employees, your cousin Joey) from a drop-down list. But what happens if all your people are stashed in different tables? Maybe you want to choose a contact for a task and your contacts are split all over the place. Does Access magically know how to put them together? Of course not. But you can pull that trick off, and here's how.

The go-to solution for combining folks from multiple tables into a single list is a union query. Suppose you've got a table for customers and another for employees. As long as the basic columns line up - say, FirstName, LastName, ID - you can use a union query to glue them together for use in one combo box, one list box, or anywhere else you need to put them side-by-side. Keep your union queries simple! If you try to get too fancy piling on different data types or complicated calculated fields, things can go sideways pretty fast. For big Frankenstein operations, it's usually better to load the pieces into a staging (temporary) table first.

But here's a little design tip: if you find yourself always juggling different "types" of people, why not just start off with one big People table? Give everyone a PersonType ID so you know if they're a customer, vendor, employee, salesperson, or whatever. Then filtering is as easy as setting a criteria on PersonType. Even slicker: with a junction table, a person could be in multiple categories. Makes life and filtering easier all around! Of course, redesigning can be a big step, so if you want a fast fix, stick to the union query for now.

Now, here's a common developer gotcha: your code works just fine at home but bombs spectacularly at a customer's office. First rule - don't panic! It's probably not even your code. Office/Windows environments can break things in all kinds of creative ways. Sometimes it's just that the user isn't logged into their Office account (yes, that's a thing). If Access or Office isn't fully activated or registered, some features won't work, even if they did for you. Other culprits? Missing references, trusted locations, antivirus, or mismatched versions. Before tearing apart your beautiful logic, have them check their setup: log into Office, run a Compact and Repair, restart, and check out my troubleshooting guide (linked in the video above) for the full checklist.

Speaking of those annoying errors, let's talk about getting sums to work in a form footer. Here's the situation: you've got a continuous form with, say, credit limits for customers, and you want an easy total at the bottom. Sounds simple… until you try to sum a calculated control in the footer - like maybe you put "CreditLimit * 2" in an unbound text box and want to total that up. Suddenly, Access starts throwing its favorite pound error at you. What gives?

This is one of those things that makes you want to shake your monitor. Here's why: the Sum() function only works on fields that are part of your form's record source. If that control is unbound and calculated right on the form, Access can't add it up in the footer. The fix? Move your calculation to the underlying query. Don't do fancy math right in your form controls - just add a calculated field in your query (e.g., CreditLimit2: [CreditLimit]*2), and base your form on that. Now that field is part of your record source, and the Sum() in your form footer will work just fine. Trust me, this one catches everybody, so don't feel bad.

Another common hangup is with paths containing spaces, especially when using DoCmd.OutputTo or FollowHyperlink and trying to pull the path from a form control. If your code works with a hard-coded path but crashes when you use, say, Me.FilePath, it's usually about how you wrap your string in quotes. Access loves to make a mess with those double double quotes. If you need details on exactly how to format those, check out the links in the video above - just know it's all about getting the right string concatenation and escaping those pesky spaces properly.

Ever want a process to "automatically" update a date cycle, like always having the latest three-year window for your records? Here's the golden rule: nothing in Access happens automatically unless something triggers it. You can use an update query launched by a button, a macro, or even a little VBA fired off when your database opens. There's no Access fairy running nightly updates, so plan on attaching your update logic to an event - like a form opening, a timer, or maybe a scheduled Windows Task running Access in the middle of the night. Whatever you choose, you have to kick things off.

Let's answer a classic beginner question: What's the difference between a table and a query? Think of a table like your pantry - it's where you actually keep the food (data). A query is more like a recipe or shopping list; it tells Access what to pull and how to arrange it, but it doesn't store anything itself. Use tables to store your records, and queries to view, sort, filter, and summarize them. That's your crash course in Access database philosophy.

One more quick tip: if you're working in the VBA editor and want to quickly switch back to your Access window, there's a "View Microsoft Access" button that brings Access back to the front. Yes, Alt-Tab works too, but sometimes those little built-in buttons you never use are worth a look! Thanks for the reminder, Gary.

Whether it's form design, code that blows up on someone else's PC, path formatting headaches, or those mysterious sum errors, just remember Access is a lot more predictable when you know where its quirks live. And if you ever get stumped, the best thing is to ask - everyone started out as a beginner before they were an "expert." If you want a deeper dive or to see some of these examples in action, make sure you check out the video embedded right above. There's always more where that came from!

Live long and prosper,
RR

Thursday, March 5, 2026

How to Create File Folders in Microsoft Access VBA Using the MkDir Statement

Ever open a folder only to find it jam-packed with tens of thousands of invoice PDFs, all jumbled together in one big digital haystack? If that sounds familiar, it's time to let Microsoft Access do the heavy lifting and organize those files for you automatically. No more scrolling endlessly or trying your luck with search - there's a better way!

Let's talk about how to get Microsoft Access to create customer-specific folders for your invoices (or any files, really) instead of dumping everything into a single directory. This is especially helpful if, like Colin from Charleston, you've been exporting invoices for years and now face an overwhelming mess. With just a bit of clever VBA - and the handy MkDir command - Access can automatically keep your folders neat, organized, and easy to navigate.

The first thing you'll need to know is that creating folders from Access uses a simple command called MkDir - which, as the name suggests, stands for "Make Directory." This bit of VBA code allows Access to create new folders on your drive, right when you need them. If you're new to VBA, don't worry; start with any beginner tutorial on Access VBA, and you'll be ready in no time. Plus, keep some basic error handling in your toolbox, so you don't get caught off guard by common issues, like trying to create a folder that already exists.

Picture your workflow: every time an invoice is created from your database, you want Access to save it as a PDF in a folder structure like Invoices > CustomerID. This way, each customer has their own subfolder, and you - and your team - can find files quickly without digging through a mountain of PDFs.

Here's how it works. Before exporting your PDF, instruct Access to check if the "Invoices" folder exists inside your chosen parent directory (say, your database folder or a network share). If not, Access will create it using the MkDir command. Next, Access will create or check for a subfolder within "Invoices" that corresponds to the current customer's ID. Each time you generate a new invoice, Access will ensure this folder structure exists, and then save the PDF right inside the proper customer folder.

Now, here's something important: MkDir isn't picky, but it'll throw an error if you try to create a folder that's already there. That's totally expected, so you can keep your code smooth by telling Access to "resume next" on errors just for those folder-creating lines. If you want to get fancy (or just a bit more robust), check out additional error-handling techniques - or the Dir function - to see if a folder exists first, but for 99.9 percent of cases, a simple setup like this is all you need.

Once the folders are created, your export command points right to the customer's new home in the file system. No more invoice chaos! I always recommend storing file paths in variables if things get complicated; that way, you're not repeating yourself or accidentally missing a backslash somewhere. Also, never forget to refresh your form or commit your data before exporting. You want your invoices to reflect the latest info, not yesterday's news.

This system is scalable. Whether you have a dozen invoices or tens of thousands, Access can handle organizing them - just by tweaking how and where invoices are saved. Want to see more advanced tricks, like checking for missing parent folders, moving existing files into the new structure, or making folders with customer names? That's all possible - just expand your VBA toolkit step by step.

And as always, don't be afraid to experiment. This method works not just for invoices, but for any kind of file you want to manage more efficiently from Access. You're basically turning Access into your own mini document management system. Pretty cool, huh?

If you want to learn about more advanced techniques - like recursive folder creation or file management within Access - check out developer resources and my training videos for those deeper dives. Also, if you're worried about the moral implications of "Tribble Jerky" (yeah, I went there), feel free to share your thoughts in the comments...

So, today you saw how Microsoft Access and a little VBA (MkDir command) can team up to organize your files, keeping your directories tidy and easily searchable. No more endless scrolling or PDF pile-ups!

If you're curious about the step-by-step visuals or want to see exactly how the VBA comes together, check out the video above for a full walkthrough. Feel free to leave a comment below and let us know how you'll put this trick to work in your own database.

Live long and prosper,
RR

Wednesday, March 4, 2026

How To Test If A File Exists In Microsoft Access VBA Using The Dir Function

Ever had your Access database blow up in a flurry of error messages just because it tried to open a file that wasn't there? Yeah, nothing like making your users think their computer's haunted. Today, let's put an end to those surprise meltdowns and learn how to gracefully check if a file exists before trying to open it in Access with VBA. Your users will thank you - and so will your blood pressure.

Picture this: You've got a field in your Customer table that stores the full path of their resume file. Maybe you even have a neat button that, when clicked, opens up that file. But - plot twist - the file sometimes isn't where it's supposed to be. Instead of Access calmly telling you "Hey, file not found," you get blasted with a confusing error no sane person can decipher. There's a way to sanity-check the file's existence before trying to open it, so let's jump right into how that's done in VBA using the handy DIR function.

The magic sauce here is the DIR function. If you're not familiar, think of DIR as the VBA equivalent of the old-school Windows command prompt DIR command. It checks the file system and tells you what's there. In VBA, you feed DIR the path and filename you want to check. If the file exists, DIR returns the filename. If not, you get an empty string. No hype, no drama, just the facts.

Imagine your customer table has a "Resume File" field. Now, we've talked before about why you shouldn't store actual files inside your database (seriously, don't do it), but storing links to files is totally fine. You store the full path and filename as text, like "C:\MyDocuments\ResumeFile.txt". When a user wants to open the file - be it with a button or a double-click event - your code needs to check if that file is actually sitting there before launching your favorite text editor or viewer.

Let's say you use a button called "Open Resume." Traditionally, you might launch the file right away using the Shell function or FollowHyperlink, assuming all is good. But if the file's missing, the user gets an error - sometimes from Access, sometimes from the program you're launching (like Notepad saying "Can't find this file, want to create a new one?"). Not very slick.

Here's what you do: before opening the file, insert the DIR check. If DIR returns an empty string, you know the file's missing. Show a friendly message box to the user and exit the subroutine. If it returns the filename, let the process flow as usual. This is a great way to give your users a nice, user-friendly heads-up instead of leaving them wondering what went wrong.

Don't forget to compile your code often. Trust me - debugging five missed semicolons because you forgot to compile isn't how anyone wants to spend their Friday afternoon. Also, remember that when you paste file paths from Windows Explorer using "Copy as Path," Windows often adds double quotes to the filename. You absolutely must remove them before pasting into your database. Little things like this can trip you up if you're not careful.

Now, you might be thinking, "Why not just use error handling instead of checking first?" Good question! The problem is, with something like Shell launching Notepad, the error doesn't happen inside Access - it happens in Notepad. That means your error handler never gets a shot. Using DIR in advance keeps the process neat and controlled.

If you're curious about more advanced tricks - like looping through every file in a folder with DIR, or why you should never store attachments in your Access tables - there are deeper dives you can explore later. But for the everyday Access user, learning to use DIR as a quick safety check will save you and your users a lot of hassle.

So, next time you set up a file link in Access, take that extra minute to check it with DIR before you open it. It's a simple way to make your databases more user-friendly and less likely to make someone panic when a file is missing.

For those wanting to see the actual VBA code for this (and all the nitty-gritty details of what goes where and why), check out the video embedded above!

Live long and prosper,
RR

Tuesday, March 3, 2026

Access Developer 53: How To Build a Recycle Bin, Batch Import, and Automate Word Docs in Microsoft Access

If you've ever wished you could manage all your important files directly from your Access database - dragging, dropping, organizing, and even batch-importing - without ever leaving Access, you're going to love what comes next. We're diving into the next generation of Access file management that not only keeps things tidy but adds some serious automation muscle. Whether you're an organizational neat freak or a digital pack rat, building a flexible file drop system in Access will save you time, cut down on mistakes, and make your database look about ten times more professional.

To set the scene: in this ongoing project, we've been constructing a complete drag-and-drop file management setup inside Access. This ensures you can safely store, preview, and launch files from within your database, handle a wide range of file types, and even automate interactions with Word and Excel documents. Let's break down how all these moving parts fit together and the new features that take it to the next level.

First up, previous phases of the project focused on laying the foundation: creating core utility functions, allowing safe file and record deletion (even inside tricky loops), and establishing solid automation routines. This means you never have to leave the comfort of your Access app to launch a file, open a folder, or view a web link. We even made it possible to directly interact with Office documents: opening Word or Excel, jumping to specific places in a document or worksheet, and performing searches - all kicked off from Access itself.

With a robust interface in place, the latest improvements focus on making everything bulletproof and even more user-friendly. Professional error handling was introduced so that, if something goes wrong while working with Word or Excel via automation, the program responds gracefully - no more mysterious crashes or disappearing data. This level of polish is what turns a homemade tool into a trustworthy, professional solution.

One of the coolest upgrades is a full-featured recycle bin system. Instead of just deleting records or files - oops, gone forever - you can now send database records to a recycle table and have files moved to the Windows recycle bin. This gives you a safety net. If you ever delete something by accident, you can fish it out and restore it, no questions asked. Accidents happen, but now they don't have to ruin your workday.

Another super-handy feature: a one-click button that creates a brand new Word document for a customer, automatically gives it a smart name, saves it in the right folder, and registers the document to the customer in your database. No more copying templates or manually renaming files - just click, take notes, and you're done. Since Word docs can handle text, images, and much more, it's the perfect catch-all for notes and attachments.

Folder management has also gone pro. With a reusable recursive directory creation function, you can guarantee that all nested folder paths exist before you need them. No need to create one folder at a time. This means if you want to create a complex folder path like "Richard\Desktop\Documents\Clients\ProjectA", you can do it all in one go - Access checks and builds anything missing automatically.

And finally, we've added batch import magic: an import folder button to grab all files from a chosen folder (even screenshots or scans you drop there from different systems) and register them en masse to your Access database. This is perfect for anyone who works across multiple devices or collects documents in batches; now you can get them all into your database, properly linked and organized, with a single click.

All of these enhancements transform Access into a real file management powerhouse. For specific details on the VBA code behind these features, be sure to watch the linked video. If you want to try these tricks for yourself and really supercharge your Access file management, the walk-through will guide you every step of the way.

Got questions, or a neat use case for these new tools? Drop them in the comments. And of course, check out the video above for the full demonstration and code details.

Live long and prosper,
RR

Spam, Scammers, and the Cost of Hustle

I got an email a couple days ago from someone claiming to represent a company called Commercial Cleaning Southwest Florida. Apparently, they were excited about cleaning my "computer training center" on Del Prado here in Cape Coral. That was interesting news to me, since I don't have a training center. My business operates entirely online. The address they referenced is a mailbox. No classrooms. No labs. No dusty keyboards in need of disinfecting.

Example of a spam commercial cleaning offer for a computer training business

Hey, I just wanted to reach out because I noticed that your computer training center is located on Del Prado Blvd S in Cape Coral! I'm sure that keeping your training rooms and labs spotless must be a priority for you and your students, right? I'm asking because we manage a local cleaning business, and we'd love to help you maintain the cleanliness, so that your training environment feels professional and inviting. I'm going to be in your area soon seeing a few other clients. Want me to swing by your computer training center to get a feel of your place and pull together a quote?

Kind regards,
Kayla Munro
Regional Commercial Director
Commercial Cleaning Southwest Florida
I replied. Politely, but directly...

Kayla,

I want to be direct and clear.

While I understand you are trying to generate new business, I have a strict policy when it comes to spam. I do not do business with companies that send unsolicited marketing emails or text messages. If I need a service, I will research vendors myself and make contact on my own terms. I do not appreciate advertisements simply showing up in my inbox.

Additionally, the information in your message is based on incorrect assumptions. The address you referenced is a P.O. box. My business operates 100% online. I do not have classrooms, labs, or any physical training facility that would require cleaning services. That address is tied to a Staples mailbox location. A minimal amount of research would have made that clear before sending spam solicitations.

Spam burns more bridges than it builds. I specifically won't do business with companies that send spam, just like I will never buy anything from a door-to-door salesman, especially once he ignores the no soliciting signs on my lawn.

Please remove my contact information from your marketing list and do not contact me again.
After that, curiosity got the better of me. I looked up the company. It doesn't exist. The person doesn't exist. The domain they emailed from was created last month. In other words, it has all the hallmarks of what we're seeing more and more of these days: fake local "businesses" generating leads through spam, then farming the actual work out to whoever will do it cheapest, whether or not they're licensed or even qualified.

I recently watched a scam-buster on YouTube break down a similar air duct scheme. The playbook is simple. Blast out emails and social posts. Offer a too-good-to-be-true price. Collect payment. Then scramble to find someone, anyone, to do the job. Quality is irrelevant. Once they've got your money, they're gone.

Now here's the bigger issue: Even if this particular email had come from a real cleaning company, I still wouldn't do business with them. Why? Because unsolicited marketing burns trust immediately. If I need a service, I'll research it. I'll look up reviews. I'll make the first move. When someone barges into my inbox based on bad assumptions and zero homework, that's not hustle. That's noise.

Which brings me to the question I'm wrestling with. Should I have replied at all? Was my response too blunt? Or is ignoring them the smarter move?

On one hand, there's something satisfying about calling out lazy spam. On the other hand, responding at all confirms your email address is active. That alone can put you on more lists. Silence might be the more strategic choice. I'm pretty confident in my Gmail spam filter to keep out most of the spam. This one snuck through, but it's pretty good about catching the majority of it.

However, I don't respond at all to text messages, because that for sure when you respond to one, then they know they got a live number and a million more messages come through. I used to have fun with those people because somehow I ended up on a commercial funding texting list and all these companies were sending me unsolicited requests for short money loans like "what kind of position are we looking at?" I used to joke back with them like "how about the position I had your mom in last night?" But then it just made the situation worse. More spam. And no one seemed to care about their mom at all.

The lesson here isn't about cleaning companies. It's about due diligence. Whether you're hiring someone to clean ducts, manage ads, build a website, teach you Access (ehem), or do anything remotely technical, take a few minutes to verify who you're dealing with. Check the domain registration. Look up the business entity. Read real reviews. If the company supposedly "local" has no footprint beyond a freshly minted domain and a Gmail-style blast email, that's a red flag you shouldn't ignore.

There's nothing wrong with earning business. There's everything wrong with pretending to be something you're not. In an age where AI can generate convincing emails in seconds and scammers can spin up fake brands overnight, skepticism isn't cynicism. It's self-defense.

As for me, I'll keep running my very dusty, completely imaginary training center from my very clean, entirely virtual office. (1)

LLAP
RR

(1) Yes my business is 100% online but I don't pretend to be anything else. The whole reason I have a P.O. Box is in case someone needs to mail me something like a check. I don't want folk showing up at my home which has happened before. When I used to live back in Buffalo people would stop by and ask "Hey can I pick up the CD that you're going to mail me? I'm right here in Buffalo." Sometimes they would just show up because my address was on the website. It was quite awkward. So from that point on I used a mailbox for everything.

Monday, March 2, 2026

SQL Server Vs Microsoft Access SQL Differences - T-SQL Basics For Access Users

Ever try copying an SQL query from Access to SQL Server only to run headfirst into a wall of bizarre errors? Maybe something about quotes, or dates, or wildcards? Even if you know SQL pretty well, these little syntax differences can trip up the best of us. Today, let's cut through that confusion and look at the basic SQL quirks that separate Microsoft Access from SQL Server TSQL - so your queries actually run the first time you paste them.

Migrating an Access database to SQL Server isn't just a matter of dragging your tables over and calling it a day. A lot of us have Access databases that have been around for decades, stuffed with forms, reports, and a heap of VBA code - all referencing tables with familiar names like CustomerT. If, after migrating, you suddenly rename that table to DBO_CustomerT, you'd have to update every single query, form, and code reference. Life is just too short for that kind of tedium. So, once you're confident everything transferred correctly, it's completely reasonable to ditch the old table and rename the linked SQL Server table right back to CustomerT. That keeps all your queries and VBA code happy without breaking a sweat.

Now, don't worry if you're the meticulous type who likes keeping those DBO prefixes as reminders you're dealing with SQL Server objects. When I'm building something new and shiny, I like that too. But for migrations, consistency with legacy naming usually wins. Just make sure you always have a solid backup before deleting anything. (Seriously - back up, check your backup, then back it up again.) Also, remember: when you remove a table in Access, you may have to deal with relationship warnings, because Access manages those locally unless you've set them up in SQL Server. Going forward, referential integrity is up to the server; Access is just the front end now.

Alright, on to the real meat: basic SQL differences between Access and SQL Server (TSQL). Biggest thing to remember: strings in Access use double quotes, but TSQL wants single quotes. This trips everyone up. For example, in Access, you'd write WHERE LastName = "Kirk", but in SQL Server it's WHERE LastName = 'Kirk'. Same field, same value, different quotes. And you'll need single quotes for dates in TSQL too, whereas Access wraps dates in pound signs - like #2020-1-1# versus '2020-1-1'.

Wildcards are another classic hang-up. In Access, you use the asterisk (*) for LIKE queries and the question mark (?) as the single-character wildcard. In TSQL, it's percent (%) and underscore (_), respectively. So, LastName LIKE 'K*' in Access becomes LastName LIKE 'K%' in SQL Server. And if you're wondering why Microsoft didn't keep things consistent, remember: Access and SQL Server were designed for totally different purposes and at different times. So we ended up with two dialects, and neither is changing anytime soon.

Boolean fields have their own twist. In Access, you use IsActive = True (or even = -1 if you like living dangerously). In SQL Server, you simply use IsActive = 1 for true, and 0 for false.

What about nulls? Checking for null is another place where syntax can sneak up on you. In Access, you might be used to using an IsNull() function, but in SQL Server, you check directly with IS NULL. So WHERE IsNull(FirstName) in Access becomes WHERE FirstName IS NULL in TSQL. Also, keep in mind that nulls and empty strings are not the same in either system - so be careful if you're porting queries that rely on that difference.

Date functions are another headache. Access lets you use Date() to get the current date (midnight, no time), or Now() for date and time. SQL Server uses GetDate() for both date and time (so it's more like Access's Now). If you want just the date, cast GetDate() as a DATE data type. And yes, there are tons of other date tricks, but start there.

Let's talk about passthrough queries for a second: these let you run TSQL directly from Access, bypassing Access's SQL parser, and executing the query directly on SQL Server. This is huge for performance, especially if you're dealing with tons of data. Normally, if you use Access syntax, Access tries to pull all your records locally, which can be slow and waste a ton of resources. Passthrough queries, on the other hand, let the server do the heavy lifting and just hand you the results. Just remember to set up your ODBC connection string in the query properties so you're not pestered for the DSN every time you run the query.

Some bonus tips (because you'll thank me later): whenever you change table structures in SQL Server (like allowing nulls in a column), be sure to refresh your linked tables in Access. Otherwise, Access won't recognize your design changes and things may break for no apparent reason. And keep in mind: Access is pretty good at translating basic queries into TSQL for server-side execution (what's called query delegation), but as soon as you toss Access-only functions or VBA into the mix, all bets are off - and it's back to dragging all your data across the network.

One last thing: while I'm a big fan of learning SQL the right way, sometimes even the best of us just want to get it done fast. Don't be afraid to use AI tools like ChatGPT to translate your Access SQL into TSQL (or vice versa) if you're stuck. Just use it as a learning tool, not a replacement for understanding whats' going on.

At the end of the day, most of the pain switching from Access to SQL Server comes down to a handful of tiny syntax tweaks with quotes, wildcards, nulls, Booleans, and date handling. Get those right, and you'll avoid 90% of the usual headaches. And if you want all the nitty-gritty code details and live demos, be sure to check out the video embedded above.

Live long and prosper,
RR