“…everytime i save my query, the like function always turn to Alike…”
ALike “*” & [Forms]![FORMsearch]![FIRSTNAME] & “*”
should be:
Like “*” & [Forms]![FORMsearch]![FIRSTNAME] & “*”
“Like” kept changing to “Alike”!
This was an interesting question I received.
Well come to find out that this has to do with an Access setting related to “SQL Server Compatible Syntax (ANSI 92)”
When you remove the check from the checkbox on “This Database”, the conversion from “Like” to “Alike” won’t take place!
(again, if the check box is dimmed, you will need to close any open query windows you have.)
Hope this helped!
Learn Access VBA: Understand Tables, Queries, Forms, and Reports
Learn Access VBA: From Zero to Database Hero If you’ve ever opened Microsoft Access and wondered how all the pieces fit together — tables, queries, forms, and reports — this tutorial is made for you. In just a few minutes, you’ll understand how Access works behind the scenes and see how VBA (Visual Basic for […]
How To Escape Apostrophe In SQL Update Query
If you are looping a table with thousands of records, you’ll probably run into at least one that has an apostrophe in the field name. Like “Mike’s” or “M’cormick”, or something else. Anyway, here is one way to escape the string when you are doing your update query. Option Compare Database Sub YDriveLoop() ‘4/23/24 erik@loeblcomservices.com […]
How To Parse A Flat File In Excel VBA
In another post I demonstrated how to access a file on your computer using the MS Office Library. Here it is if you don’t know what I’m talking about. In this post, I am going to show you how to access the file and load it into your spreadsheet. I will do the same thing […]
How can I interact with other Office applications (Excel) using VBA in Access?
Need to write your Access data or query to an Excel file? Here is the how to do it: Most people are familiar with Excel and know how to use it well (enough), and when you start talking about Access, they get scared off, and don’t know what to do anymore. Well, here you are […]
Support these sponsors: