Convert Query SQL to VBA Code in Microsoft Access. Add Line Breaks, Quotes, vbNewLine, and More.

  Рет қаралды 26,961

Computer Learning Zone

Computer Learning Zone

Күн бұрын

Пікірлер: 26
@scottaxton2513
@scottaxton2513 4 жыл бұрын
5-Stars! This video alone just saved me HOURS of work converting a db using macros from the 1990's to this century. Kudos and Thanks! Scott
@599CD
@599CD 4 жыл бұрын
My pleasure, Scott.
@johnmcfarlane8805
@johnmcfarlane8805 4 жыл бұрын
Remarkable stuff from our favourite MVP!
@599CD
@599CD 4 жыл бұрын
Technically "former" MVP. The Microsoft MVP award is an annual prize. I was awarded it in 2014 and 2015, but then due to health reasons I took some time off and wasn't actively involved in the tech community for a few years. Hopefully they'll reconsider me in 2021. I love helping folks, posting my videos, and answering emails, which is one of the things they consider.
@timfulton6920
@timfulton6920 3 жыл бұрын
Looks good and I love the concept. I hadn't done any lessons on SQL in VBA and formatting but this was easy to follow. I did find I ran info an error when trying to use the SQL statement with "CurrentDb.OpenRecordset" "Error Number: 3131- Syntax error in FROM clause." I found it was because my SQL statement didn't have a space at the end of the FROM Line. "FROM QRY_SO_ALL" & _ (Incorrect) "FROM QRY_SO_ALL " & _ (correct) I didn't see in the video a spot that addressed that in the video. I hope this helps anyone with a similar issue.
@599CD
@599CD 3 жыл бұрын
Yeah that could be. It's a very "version 1.0" piece of software.
@colinhursell9176
@colinhursell9176 4 жыл бұрын
Thank you! Really useful information!
@599CD
@599CD 4 жыл бұрын
Glad you like it.
@teemoto3923
@teemoto3923 Жыл бұрын
One the first functions i add to my dbs is one that adds vbnewlines and give it a short name. for example cr(2) returns two lines. Saves on typing
@ssdusd
@ssdusd 2 жыл бұрын
Greate!. But how will you go back to the base query after changing RecordSource?
@599CD
@599CD 2 жыл бұрын
I get a ton of questions every day, and I don't have time to answer them all here on KZbin. Feel free to submit your question on my website at: 599cd.com/AskYT
@mohammedalsarraj9963
@mohammedalsarraj9963 Жыл бұрын
Great review
@599CD
@599CD Жыл бұрын
Thanks
@zoomingby
@zoomingby 7 ай бұрын
The fact that Access creates SQL in such a way that can't be readily used in VBA is inexcusable and absurd.
@mafgeology
@mafgeology 4 жыл бұрын
Great 👍
@599CD
@599CD 4 жыл бұрын
Thank you 👍
@ashishtrivedi8253
@ashishtrivedi8253 3 жыл бұрын
With docmd.runqul statement or me.recordset statement error saying required sql statement... I search on net it says only update or similar statement can run by this .. select statement can't! I can see your doing it.. please tell me how? Thx in advance
@599CD
@599CD 3 жыл бұрын
Without seeing your statements, it's impossible to tell what the problem is. I did have one user who discovered that if you use SPACES in your field or table names, my converter doesn't work. But my Rule #1 that I teach in Access Beginner Level 1 is DON'T use spaces in field or table names. :)
@ashishtrivedi8253
@ashishtrivedi8253 3 жыл бұрын
@@599CD sorry for late response on this but that point of time i was desperate ;) but finally i figured it out, Docmd cant execute select statement. If anyone wants to try that can use ADO and it will work.
@nairobi203
@nairobi203 Жыл бұрын
This is like Parmesan Cheese on a nice plate of Spaghetti with Tomato sauce.... Perfect... -:)
@599CD
@599CD Жыл бұрын
Don't fuggetta bout da meat BALLS!
@dbdata9836
@dbdata9836 4 жыл бұрын
thanks
@599CD
@599CD 4 жыл бұрын
Welcome
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
An Introduction to VBA Code in Microsoft Access
9:51
MyExcelOnline.com
Рет қаралды 22 М.
How to Use Macros in MS Access
22:49
Sean MacKenzie Data Engineering
Рет қаралды 12 М.
How to easily automate boring Excel tasks with Power Query!
17:10
MyOnlineTrainingHub
Рет қаралды 1,6 МЛН
Dynamic Filter in Excel - Filter As You Type (with & without VBA)
13:00