Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to SQL Search Boxes    Comments List
Public Thread ?
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
SQL String Concatenation
Debbie Heaney 
     
14 days ago
When it comes to SQL I still haven't got the hang of string concatenation, but the last few levels have been a massive help towards my understanding it.

In this video the way you used [sWHERE] and [mySQL], along with Notepad, to help you visualize things also help me visualize things.
Combined with your pace, the way you were explaining things and talking out your reasoning when things didn't quite work right.
All very helpful indeed.

Video bookmarked for future reference.
Alex Hedley  @Reply  
           
14 days ago
One thing I usually do is break it down step by step.
Firstly get your hardcoded SQL working:
"SELECT * FROM Table WHERE Field = 'Item'"

Then start splitting it out
"SELECT * FROM Table WHERE Field = '" & "Item" & "'"
Run that and confirm it still works.

Then you can swap it for a Param
"SELECT * FROM Table WHERE Field = '" & FIELD & "'"

I've used single quotes for ease but ref Double Double Quotes for further help.
Debbie Heaney OP  @Reply  
     
13 days ago
Thank you Alex.

The use of single quotes helps immensely with being able to follow along.
I'm starting to understand the theory, now i just need to practice.

In my recent project i have been doing more manual SQL writing instead of using the query designer.
It's really good fun learning something new.
Alex Hedley  @Reply  
           
13 days ago
It's a skill worth practicing, and as with anything the more you do the better you'll get. It'll soon become second nature and it'll likely be faster than using the drag and drop version.
Plus if you ever move to MS SQL Server you'll thank yourself.
Richard Rost  @Reply  
          
13 days ago
You're doing exactly what you should be doing: getting the basic theory down, then practicing it in real situations.

Alex is right that breaking the SQL string into pieces is one of the best ways to troubleshoot it. I like using a visible mySQL text box while building searches for that same reason. If you can see the final SQL statement that Access is receiving, it is much easier to spot a missing quote, space, wildcard, or AND condition.

And yes, writing SQL manually is good fun once it starts clicking. The Query Designer is great for getting started and for quick ad hoc queries, but knowing SQL gives you much more control.
Add a Reply Upload an Image
Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 9/21/2026 1:00:20 AM. PLT: 1s