Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
RunTime Error 3075 in Query
Pete Santiago 
       
5 years ago
I have went through troubleshoot steps and didn't work.  I have a form with my customers and I can sort them by group with no problems; however, when I click the "Create Report" button. I get a Run-Time Error 3075: Syntax error in query expression 'SELECT * FROM EntityGroupQ WHERE GroupID = Forms!EntityGroupListF!GroupSearch ORDER BY LastName'.  I have another Form for Birthdays sorting by month - it works fine both in Form and Report.  Any guidance will help. Thanks in advance.
Pete Santiago OP  @Reply  
       
5 years ago

Pete Santiago OP  @Reply  
       
5 years ago

Pete Santiago OP  @Reply  
       
5 years ago

Richard Rost  @Reply  
          
5 years ago
You've got to take the ID outside of the quotes.

Me.RS = "SELECT * FROM CustomerT WHERE ID=" & Forms!CustomerF!CustomerID & " ORDER BY LastName"
Pete Santiago OP  @Reply  
       
5 years ago
Thanks Richard for replying.  I did what you suggested with triple checking spelling and quotations, but I'm now getting: "...WHERE GroupID = 139 ORDER BY LastName".  I checked my query and changed my GroupID Column in Properties from a Combo Box back to Text Box.  I even tried creating a new form.  I'm pulling my groups from a helper table, so I'll start there and see if I changed something from text to number or vice versa somewhere.  Love the challenge! Thank you for what you are doing!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

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: 5/6/2026 12:05:06 PM. PLT: 1s