Загрузка страницы

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

Do you copy a lot of SQL from the query designer SQL view over to the VBA editor to use in your code, and you spend a lot of time "fixing" the string, adding line continuation characters, adding quotes, etc. Well, in this video we'll make a little utility you can use to perform that task with one click. You can use this in a RunSQL statement or a Me.RecordSource change.

LEVEL: Developer (SQL and VBA coding)

John from Hancock, New Hampshire (a Silver Member) asks: Is there a way to format the SQL text of a query with the proper line breaks and quotes so I can copy it to my VBA editor for a RunSQL command without doing all that manual editing?

BONUS FOR CHANNEL MEMBERS:
Silver Members and up get access to a 30 MINUTE EXTENDED CUT of this video which walks you through some additional modifications to the utility, including splitting long lines up, loading a listbox with all of the queries in the database, and one-click to copy the SQL to the editor textbox and convert it.

MEMBERS ONLY VIDEO:
https://youtu.be/ApmRGLJO2yA

BECOME A MEMBER:
https://youtube.com/channel/UCl7-jJie4ifOVK87FINIuDg/join

LINKS:
Replace Function: https://599cd.com/Replace
Me.RecordSource: https://599cd.com/RecordSource
Double Double Quotes: https://599cd.com/DoubleDouble
SetFocus: https://599cd.com/SetFocus
Intro to VBA: https://599cd.com/IntroVBA

ADDITIONAL RESOURCES:
Get on my Mailing List: https://599cd.com/YTML
FREE Access Beginner Level 1: https://599cd.com/Free1
FREE Blank Customer Template: https://599cd.com/FRL2
$1 Access Level 2: https://599cd.com/1Dollar
TechHelp: https://599cd.com/TechHelp
Twitter: https://twitter.com/LearningAccess
https://en.wikipedia.org/wiki/Microsoft_Access
https://products.office.com/en-us/access
https://microsoft.com/en-us/microsoft-365/blog/access/
Email Me: amicron@gmail.com

WHAT DOES LEVEL MEAN:
My Access classes are divided into multiple levels. BEGINNER requires little working knowledge of Access. EXPERT assumes you know relationships and how to use functions. ADVANCED users know macros and events. DEVELOPER uses SQL and/or VBA programming.

KEYWORDS:
microsoft access, ms access, #msaccess, #microsoftaccess, line breaks, vbnewline, vbtab, sql to vba, convert sql, convert to vba, line continuation character, runsql, recordsource, setfocus, copy to clipboard

QUESTIONS:
Please feel free to post your questions or comments below. Thanks.

Видео Convert Query SQL to VBA Code in Microsoft Access. Add Line Breaks, Quotes, vbNewLine, and More. канала Computer Learning Zone
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
31 декабря 2020 г. 23:21:23
00:21:00
Другие видео канала
How to Open a RecordSet in Access VBA and Loop Through the RecordsHow to Open a RecordSet in Access VBA and Loop Through the RecordsScanning Barcodes (UPC, ISBN, EAN, etc.) to Lookup Products in your Microsoft Access DatabaseScanning Barcodes (UPC, ISBN, EAN, etc.) to Lookup Products in your Microsoft Access DatabaseUsing Many-to-Many Relationships in Microsoft Access to Track Employee Certifications, Courses, etc.Using Many-to-Many Relationships in Microsoft Access to Track Employee Certifications, Courses, etc.Things I wish I knew when I started ProgrammingThings I wish I knew when I started ProgrammingHow to use the DLookup Function to Look Up a Value from a Table or Query in Microsoft Access.How to use the DLookup Function to Look Up a Value from a Table or Query in Microsoft Access.Add Accounts Receivable to your Microsoft Access Order Entry & Invoicing Database. Who Owes Money?Add Accounts Receivable to your Microsoft Access Order Entry & Invoicing Database. Who Owes Money?VBA SQL Strings - Tutorial for BeginnerVBA SQL Strings - Tutorial for BeginnerHow To Manage User Authorization and User Access in Access 2013 🎓How To Manage User Authorization and User Access in Access 2013 🎓How and Why to Split Your Microsoft Access Database - Linked Table, Front End, Back End, BenefitsHow and Why to Split Your Microsoft Access Database - Linked Table, Front End, Back End, BenefitsDon't Delete! Marking Records Inactive. When and When NOT to Hard Delete Data in Microsoft AccessDon't Delete! Marking Records Inactive. When and When NOT to Hard Delete Data in Microsoft AccessAdd Records for Followup Dates Automatically in Microsoft Access using GoToControl, GoToRecordAdd Records for Followup Dates Automatically in Microsoft Access using GoToControl, GoToRecordMicrosoft Access Intro to VBA Programming - Visual Basic for Applications for Beginners - Access VBAMicrosoft Access Intro to VBA Programming - Visual Basic for Applications for Beginners - Access VBAMail Merge Microsoft Access Data into Microsoft Word DocumentsMail Merge Microsoft Access Data into Microsoft Word DocumentsCalculated Fields in Microsoft Access - How to Perform Calculations in Queries & Form Footer TotalsCalculated Fields in Microsoft Access - How to Perform Calculations in Queries & Form Footer TotalsImport CSV Files into Access - pt1Import CSV Files into Access - pt126. (Advanced Programming In Access 2013) Send Outlook Email With VBA26. (Advanced Programming In Access 2013) Send Outlook Email With VBAAccess VBA | Working with Query DefinitionsAccess VBA | Working with Query Definitions26. Learn Microsoft Access 2016:  How To Use Subforms With Many to Many Relationships26. Learn Microsoft Access 2016: How To Use Subforms With Many to Many RelationshipsGet a Value from an Open Form in Microsoft Access using Forms!FormName!FieldName NotationGet a Value from an Open Form in Microsoft Access using Forms!FormName!FieldName Notation
Яндекс.Метрика