Free Lessons
Fast Tips
Topic Index
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > Select Records < BCE Dates | Switch Function >
Back to Select Multiple Records    Comments List
IsSelected cleared Upload Images   Link   Email  
Thomas Gonder       
2 years ago
This is a great idea to add to the multiple tables that users use. I would like to offer ONE query that sets all IsSelected to false. So, I want to prompt the user for a table name, but I don't want to use the actual table name (it's confusing for the user with a name like "tbl_Hr_Emp"). In the HR applications, there are maybe 5 tables that could have IsSelected cleared. How can we pass which table to set to the generalized update query?
Richard Rost             
2 years ago
Why not set up a table with the query names in it that you want to run, much like I do with reports in Report Listbox?
Thomas Gonder       
2 years ago
A listbox or menu, pretty much the same thing (except for what you're doing in the extended cut). My question was a bit different. You had to create separate reports for the listbox (in the referenced Tech Help), fair enough. In theory, one update query for setting all the records with IsSelected  to false could handle all the different tables that are using IsSelected (I'm a design minimalist, at least when it comes to common work). We DON'T want to update all the tables at once, as there could be another user setting IsSelected in a second table (we'll skip the topic of task locking for now). The only thing that is needed is a way to tell the ONE update query which ONE table to update. How can we pass the table name to the update query from a menu command button and have it work? (I can see how to do it with a listbox and VBA based on the Tech Help, but not from a command button).
Kevin Robertson             
2 years ago
How about a Public Sub Routine in a Global Module? You could send the Table name as a parameter.
Thomas Gonder       
2 years ago
Yes, I'm just not sure how to send the parameter from a command button.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Select Multiple Records.


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

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

Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/14/2024 12:01:21 AM. PLT: 1s