Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Hide Inactive < Event Enrollment | Error Messages >
Back to Hide Inactive    Comments List
Variable not define Upload Images   Link   Email  
Daniel Lewis     
12 months ago
Im getting all confused.  I followed this tech help and got the customer active working, I also have a voucher code so was following the same steps to only show none redeemed vouchers in my vouchercombo. I've used the same code as in the tech help changing out the customer stuff the voucher stuff however it's saying that one of my variables is not defined (the "VoucherID" in the Nz(VoucherID, 0) part of the code.  my code is below and I'm not sure what I'm missing or done wrong.  I also have a VoucherQ with the IsRedeemed box in it and it works fine when I run the query directly.  please help.

    CustomerCombo.RowSource = "SELECT [CustomerFLQ].[CustomerID], [CustomerFLQ].[FL] FROM CustomerFLQ " & _
        "WHERE (IsActive=True OR CustomerID=" & Nz(CustomerID, 0) & ") ORDER BY [FL]; "

    VoucherCombo.RowSource = "SELECT [VoucherQ].[VoucherID], [VoucherQ].[VocherCode] FROM VoucherQ " & _
        "WHERE (IsRedeemed=False OR VoucherID=" & Nz(VoucherID, 0) & ") ORDER BY [VocherCode]; "

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/18/2024 8:31:21 AM. PLT: 1s