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 
Using Tempvars in Query Criteria
Michael Medici 
     
7 months ago
Hi all.  Been a while, but been working on optimizing my db.  Had a question. I want to use a tempvar in a query criteria, but I need to set the criteria with a couple of conditions.  Typically I would put the criteria as "condition1" or "Condition2"  I figured I would set a tempvars in vba and pass that to the query criteria field, but I can't figure out how to add the 'or'.

Any thoughts?

Thanks!
Raymond Spornhauer  @Reply  
          
7 months ago
Michael

TempVars

-Raymnond
Michael Medici OP  @Reply  
     
7 months ago
Yes, I know that and I can use the tempvars!varname in the query criteria to set as a single condition.  What I am trying to do set the tempvars to "created" or "Submitted" or "approved" as one string so that the query criteria recognizes it as on string with 2 or statements.  I don't know how to add the OR to the string so query criteria recognizes it.

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/8/2026 8:52:03 AM. PLT: 1s