Why I Prefer Double-Double Quotes ("") Instead of a Single Quote (') in Microsoft Access

  Рет қаралды 3,190

Computer Learning Zone

Computer Learning Zone

Күн бұрын

Пікірлер: 22
@mikewashington4188
@mikewashington4188 Жыл бұрын
Using double double quotes always gives me a headache just like time travel examples.
@599CD
@599CD Жыл бұрын
You were late to our Time Travelers Meeting tomorrow.
@mirchimasala171
@mirchimasala171 Жыл бұрын
Dear Richard .you are only and one hope for access developers....may you live long...keep it up legend Richard ...love from pakistan
@599CD
@599CD Жыл бұрын
Thanks
@דודקלדרון-כ6פ
@דודקלדרון-כ6פ Жыл бұрын
As usual Rick, so clear explanations... I've learned so much from your videos.. You are truly a master. In the past, i had no idea how to deal with that syntax and all i did, was trying all the possibilities to make this to work. But now, everything looks so easy.. Thanks a lot!
@599CD
@599CD Жыл бұрын
You are very welcome
@Shadow.Dragon
@Shadow.Dragon Жыл бұрын
The "mystery" of the DDQ solved! Thanks for the great explanation on how Access treats single and double quotes!
@599CD
@599CD Жыл бұрын
Glad it was helpful!
@ozairkhalid
@ozairkhalid Жыл бұрын
thanks
@599CD
@599CD Жыл бұрын
Welcome
@gregoryjeffries8475
@gregoryjeffries8475 Жыл бұрын
Handy for dealing with Klingon.
@599CD
@599CD Жыл бұрын
It does kinda look like Klingon, huh? DdQ' NoT sQ!
@AlejandroJuarez-je3en
@AlejandroJuarez-je3en Жыл бұрын
10:01. Hi, Richard, I was expecting to see "If IsNull(S) Then" instead of "If IsNull(DDQ) Then"...
@fuego09esmeralda
@fuego09esmeralda Жыл бұрын
Do you think he left this there to test if we're paying attention...?
@599CD
@599CD Жыл бұрын
Always read the description
@599CD
@599CD Жыл бұрын
Uh... yeah... uh... it's a test. :)
@fuego09esmeralda
@fuego09esmeralda Жыл бұрын
I knew it...! 🤓
@ryanw1906
@ryanw1906 Жыл бұрын
Don't you want IsNull(S) in your DDQ function? I knew this would be related to Apostrophes but I think Chr(34) & Replace(s,"'","''") & chr(34) still works in those cases. (for my Qt function)
@599CD
@599CD Жыл бұрын
Yep - always check the notes down below. Realized the error as soon as I posted the video.
@navisalomi
@navisalomi Жыл бұрын
Thanks Richard for stating your reasons. There is a workaround to escape the single quote character. Infact, I wrote a function to put the single quotes to clear the headaches all together. Anyone may try it to see. The function assumes the string would not contain double quotes. Copy and paste function to a module to see the single quotes and escapes clearly. The function can be enhanced to handle double quote. I just think there very slim chances anyone would come across DDQ in a string. ==================== Function replace_escape_quotes(textValue) as String If IsNull(textValue) Then Exit Function replace_escape_quotes= "'" & Replace(textValue, "'", "''") & "'" End Function ==================== With this function all you need to do is call the custom function inside the Dlookup =DLookUp("[CreditLimit]","[CustomerT]","[LastName] = " & replace_escape_quotes(Lastname)) The custom function removes the whole headache altogether. I tested for O'Brien and it worked perfectly. I'm very comfortable with DDQ, but single quotes are more readable and modern programming languages like Python makes it even easier to use.
@599CD
@599CD Жыл бұрын
Oh sure... there's always multiple ways to deal with an issue. Thanks for sharing. :)
@navisalomi
@navisalomi Жыл бұрын
Thanks for steering my learning. I had to do some digging. 😀
Performing a Double Lookup in Microsoft Access Requiring Multiple Criteria
11:48
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 71 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 12 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 12 МЛН
Using DLookup with Multiple Criteria in Microsoft Access, Part 2
21:24
Computer Learning Zone
Рет қаралды 2 М.
How to Create an ACCDT Template in Microsoft Access for Easy Database Distribution
18:43
Passing a Form as an Object Variable to a Global Subroutine in Microsoft Access VBA
18:24
Export your Microsoft Access database to the cloud
6:50
Analysis Cloud IT Vlog
Рет қаралды 10 М.
NEVER Memorize Vocabulary in a New Language - Use Artificial Immersion
10:04
SQL - When to Use Single or Double Quotes in Queries
4:01
Coding With Brett
Рет қаралды 1,9 М.
Fixing DSum Date #Name? Errors in Microsoft Access Calculated Fields
19:00
Computer Learning Zone
Рет қаралды 765
How to Get the Windows Username in MS Access
16:02
Sean MacKenzie Data Engineering
Рет қаралды 5 М.
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 71 МЛН