Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Chronicles-search Query
Kenneth A Thomas 
       
12 hours ago
Hello everyone.  I am in charge of the Archives/Chronicles for our healthcare campus.  There are 56 Chronicle Books in the Archives, which run consecutively from 1924 through the current date, with room for expansion.  I have attached 2 screen shots so you can see both the basic "ChronicleQ" design, as well as the results.  I would like to know what changes or additional coding I need make to be able to search in the "Description" field in order to find documents pertaining to specific names or topics.  Any advice?
Kenneth A Thomas OP  @Reply  
       
12 hours ago

Kenneth A Thomas OP  @Reply  
       
12 hours ago

Kevin Yip  @Reply  
     
11 hours ago
To search text within the Description field, you need the InStr() function.  For instance, the SQL below:

     SELECT * FROM ChronicleT WHERE InStr(1, Description, "book") <> 0

will return records where the Description field contains the text "book" somewhere in it.  Words with partial text "book" (e.g. Facebook, books, booked, etc.) will also be included.  It looks for exact matches of the text (spaces and other special characters included), so misspellings will be a problem.
Kenneth A Thomas OP  @Reply  
       
8 hours ago
Kevin, do I add that SQL script in the Description field Criteria?
Kenneth A Thomas OP  @Reply  
       
8 hours ago
Or is that VBA code in the form?  I don't understand how to apply that SQL.
Kevin Yip  @Reply  
     
7 hours ago
On your first picture, under "View" at the top left, click that V-shaped button to open up the SQL screen, where you type the SQL statement (correct my misspelling first).  There are other issues to consider too.  My SQL above only searches for "book."  To allow your users to specify any search words, it takes more work.  One way is to create a "parameter query" that accepts user inputs.  Another is to use VBA code to get user inputs and construct the SQL statement.  I don't know your level, so refer to Richard's courses.  I've never taken any of his courses, so I would defer to Richard and others regarding what courses you need to do all of the above.
Donald Blackwell  @Reply  
       
6 hours ago
A couple of the videos Kevin might consider valuable for you are:

Parameter Query
Direct SQL View
Kenneth A Thomas OP  @Reply  
       
5 hours ago
I've never used SQL, so I will check out the videos.
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/2/2026 1:36:47 AM. PLT: 1s