Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > Forums > Access Forum > Description Box by David Clement
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Description Box
David Clement 
      
14 days ago
Good morning Richard and others,
I have been building a Photo Browser Database. It is working quite well.
One of my Fields is set up as Description. I have made a Query for that field as
[SearchDescription] as a wildcard search, it works well, but I am wondering if there is an easier or better way to enter the description for the photo in question. An example might be like this- someone standing by rock on beach wearing blue hat-you can enter any of those words, and it will search for those description words in the whole database. using no commas or dashes, just the text. The text may have 80 total charactors in the description. Is that okay, or is there a way to make it like a Google search using plus signs and such?
Thank you!
Richard Rost  @Reply  
           
14 days ago
That kind of free-form description is perfectly fine. An 80-character description is no problem at all - a Short Text field can hold up to 255 characters, and you can use Long Text if you ever need more.

Access doesn't have a built-in Google-style search syntax with plus signs, quoted phrases, and so on. A criterion such as:

Like "*" & [SearchDescription] & "*"

is great for finding one word or an exact phrase anywhere in the description. But if someone enters "rock beach," it looks for those two words together in that order.

If you want "rock beach blue" to find records containing all three words in any order, that requires splitting the entered text into individual words and building separate criteria for each one. That's very doable with a search form and a little VBA. I do cover this in some of my more advanced developer lessons.

For a photo database, I would also seriously consider using keywords/tags in addition to the full description. For example: beach, rock, blue, hat, person. A proper keyword table with a junction table gives you much cleaner searching than trying to make every description read like a Google search. You can still keep the Description field for the human-readable notes.
David Clement OP  @Reply  
      
14 days ago
Okay.
Thank you!
Kevin Yip  @Reply  
     
14 days ago
Image searches are probably best done with AI nowadays.  Your phones probably can already do it.  On my Galaxy S25, I search for "pictures with rocks" and it will show pictures on my phone that fit that description (see picture below).  But it's not always accurate.  Sadly, Access is not likely to get these AI capabilities.  Traditional keyword search is problematic due to synonyms, conjugated words, misspelled words, etc., that you have to account for.  Not to mention, all the data entry you have to do for all the keywords, not pleasant if you have thousands of pictures and/or pictures with complex visual elements.
Kevin Yip  @Reply  
     
14 days ago

Richard Rost  @Reply  
           
14 days ago
Yep, Kevin's right that AI can do a lot of this now. You can do the same thing with an Access database if you want to use OpenAI's API, or whatever AI tool you prefer. Send it a picture, have it analyze the image, and return a list of keywords. I've already done it.

It's not exactly easy. You have to encode the image a certain way and send it properly to the API, but it's definitely possible to do all of it straight from within Access.

Or, if you don't mind doing it manually, just drop the picture into ChatGPT and say, "Hey, give me a list of keywords for this image," and there you go. It really depends on how much you want to automate and how much time you want to spend setting it up.
Kevin Yip  @Reply  
     
14 days ago
The easiest way is probably upload all your pictures to an AI-powered image hosting service, such as Google Photos, that already has built-in AI searching capability.  Use Access only for traditional database features, such as storing the paths (or individual URLs) of the pictures, and issuing commands to external AI services via API or whatever.
David Clement OP  @Reply  
      
14 days ago
Thank you Kevin!
David Clement OP  @Reply  
      
14 days ago
Richard, Follow up question basically same topic.
How can I display the total number of records in my table either in a text box or status box on the menu form? How would I code it?
David Clement OP  @Reply  
      
14 days ago
I watched the count video. I don't understand what I am doing wrong.
Donald Blackwell  @Reply  
       
14 days ago
If you just want one field on your menu form to display the # of records in a specific table, the method with the fewest steps would be:

1) Add textbox to menu form
2) Set the recordsource of the the text box to: =Nz(DCount("IDField","TableToCountT"),0)

Replace IDField with the name of the ID Field in the table, or you may be able to get away with "*". Replace "TableToCountT" with the name of your table.

Then apply whatever formatting you'd like to the textbox. Maybe set it to Enabled = No; Locked = Yes; TabStop = No if you want to make sure that you don't accidentally tab into an uneditable field.
David Clement OP  @Reply  
      
14 days ago

David Clement OP  @Reply  
      
14 days ago
Sorry for the delay, i got side tracked.
Richard Rost  @Reply  
           
14 days ago
Thanks for the screenshot, David. Which count video did you watch? Please post the title or link so I know which example you're following.

Your screenshot shows a totals query and the "Cannot group on fields selected with '*'." message. Please switch that query to SQL View and paste the SQL here so we can see the whole query. Also, are you trying to get the count from this query, or have you tried Donald's suggestion of displaying it directly in a textbox on your menu form?
David Clement OP  @Reply  
      
14 days ago
I am sorry, I can't find which one I watched. I watched the video, i tried to build the query, then I got sidetracked and I lost my train of thought. I just want to have a text box or status box on my main menu form to show total number of records in my database. I can't get Donald's code to work even after changing field names.
David Clement OP  @Reply  
      
14 days ago
=Nz(DCount("IDField","TableToCountT"),0)
David Clement OP  @Reply  
      
14 days ago
Does it really have to be a query?
Table Name = CNG1T
Field Name= CNGID
Thank you!
Kevin Yip  @Reply  
     
14 days ago
David  You can check your browser history to see which page you went to to watch the video.

To get the number of records on a form, the easiest way is go to the form footer and add a textbox with this control source:

     =Count(*)

Donald Blackwell  @Reply  
       
14 days ago
So with your fieldnames, since you're not looking for records in that form, but from another table, the Control Source for the text box (sorry, i previously said recordsource in error) would be:

=Nz(DCount("CNGID","CNG1T"),0)

or

=Nz(DCount("*","CNG1T"),0)
David Clement OP  @Reply  
      
14 days ago
I am sorry, I am really struggling with this.
David Clement OP  @Reply  
      
14 days ago

David Clement OP  @Reply  
      
14 days ago

David Clement OP  @Reply  
      
14 days ago
I cant get Donald's code to work either.
David Clement OP  @Reply  
      
14 days ago
This is not a big deal, I just thought it would be nice to see a total of the records in this database on the main menu.
Thank you for all your help!
Donald Blackwell  @Reply  
       
14 days ago
The =Count(*) approach only works if that form is bound to the table you are counting the records in. If your menu form is bound to CNG1T then that should work. Otherwise, the DCount approach may be simpler.

So to recap, is the form you are trying to show the record count in bound to the table holding the records?
If so, Count(*) is probably the best solution. If not, then DCount or a DLookup to a Query may work better.

If you're not getting anything or getting erros, then we'd need to so your form in design view with the textbox selected and the property pane open to the data tab to see what's not quite right.
David Clement OP  @Reply  
      
14 days ago
The form I would like to use is my Main Menu Form. It is not bound to anything. Would a status box work? Richard has shown how to display other items on a Menu Form, I just don't recall which video or course to watch. My memory isn't what it used to be.
Thank you either way.
Donald Blackwell  @Reply  
       
14 days ago
If the only value you want to see in a field on the main menu is the count of records in a specific table, then you could do what you were trying before by creating an aggregate query on the table that only has one field the aggregate count.

In create query, pull in the table you want a record count of: CNG1T
In the field list at the bottom, select CNGID
Click the "Totals" icon on the ribbon to turn it into an aggregate query
Total row, Choose "Count"
Click "Run" to see your result. It should have a header of "CountOfCNGID" and just one row, the count.
If you want to give it a more meaningful heading, you can give it an alias by changing the field name row to something like TotalRecords: CNGID

If it's working as you like, then save the query with a name you can remember, such as CNGCountQ

Next, you could bind your menu to that query by setting it's record source to CNGCountQ (or whatever you named the query)
Then, since the query only has one field, set the control source of your text box to that field, for example TotalRecords.

Save the menu, close and re-open it and it should work.

Some reference videos:
1. Count
2. Count Records
3. DCount

There are some other great videos but they are more advanced.
Richard Rost  @Reply  
           
13 days ago
David, an ordinary textbox on your unbound Main Menu form can do this. You do not need to bind the menu to a query just to display the count.

Your screenshot shows =Count(*), which counts records in the form's own record source. For the total number of rows in CNG1T, use Donald's DCount approach instead. Open the menu in Design View, click the textbox itself, and set its Data > Control Source to:

=DCount("*","CNG1T")

Put that expression in the textbox's Control Source, not the form's Record Source or the textbox's Default Value. Save, close, and reopen the menu. This counts the rows in that one table, not every record across the whole database.

If that still shows an error, please post a screenshot with that textbox selected and its Data properties visible, plus the exact error shown. That will let us see what Access is actually using. Thanks to Donald and Kevin for helping narrow it down.
David Clement OP  @Reply  
      
13 days ago
Donald, thank you for all you help on this, I never did get it to work. I always had the same error message as shown above.
I ended up changing my MainMenu Form to be bound to the Table in question. I have what I wanted now. It only has the one text box on it, and it appears to be working. I used Kevin's idea. Thank you.
Let me know if this an acceptable solution.
David Clement OP  @Reply  
      
13 days ago

Donald Blackwell  @Reply  
       
13 days ago
Good work. If it does the job you want it to do then it is absolutely an acceptable solution.
David Clement OP  @Reply  
      
13 days ago

Thank you for your help!
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: 11/17/2026 3:28:56 AM. PLT: 1s