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 > Courses > Access > Expert > X13 > < X12 | X14 >
Back to Access Expert 13    Comments List
Upload Images   Link   Email  
Error Parameter Value
Austin Ritner 
    
4 years ago
When I try to open all of the orders for a certain customer, it asks me to enter parameter value: Forms!OrderF!OrderID.

The WHERE condition on the button is CustomerID=Forms!CustomerF!CustomerID.

How do I fix this?
Richard Rost 
            
4 years ago
Somewhere you must be asking for that OrderID. Walk me through your steps. Are you opening a FORM or a REPORT? Are you using the Wizard?
Austin Ritner OP 
    
4 years ago
Trying to open a report and yes using the wizard. Trying to make it so I can view ALL orders for a customer in a report instead of the one thats currently open.

I copy/pasted the button onto the CustomerF and thats when it asks for the OrderID.

I've gotten it so that it's filtered to JUST the one on the screen, but it's just viewing all invoices for that particular customer that I'm having an issue with.
Richard Rost 
            
4 years ago
I had to review lesson 1 to see what I did. It's been a while since I recorded that lesson. Honestly I don't use this method myself. I almost never use macros, but I teach them in Expert classes because it's easier than VBA. I may change that in the future. Macros can be confusing. Somehow that macro is still looking for your OrderID. I would recommend creating the button new from scratch. Don't copy the other one. Your where condition should be correct. There are actually better methods of doing this. You can use VBA with a WHERE condition. I cover that in Access Developer 5 where I show printing checks. You can also do it with a query, like I show in this Tip Video. I should make an updated TechHelp video on this one.
Austin Ritner OP 
    
4 years ago
ok, on Order2Q, i still have the OrderID field and the criteria in that field is Forms!OrderF!OrderID

Could that guy be the culprit? Do I need to just take that out?
Austin Ritner OP 
    
4 years ago
oh my goodness. I just took out that criteria on Order2Q and it worked. I see all orders for a particular customer.... ugh... guess i just needed some fresh eyes. been working on this DB for quite a while haha
Richard Rost 
            
4 years ago
That happens. LOL. It took me a few minutes because I have to put myself in the mindset of the student. I had to review what I covered in that lesson because my mind is always thinking of the most efficient way to do things in Access (which is usually the more advanced). You can do this with one line of VBA code:

Docmd.OpenReport "ReportNameR",,,"CustomerID=" & Forms!CustomerF!CustomerID

But that's not something you'll get to until Access Developer 5.

Richard Rost 
            
4 years ago
In any event, I haven't covered this in a TechHelp video yet and that Tip video is quite old. Maybe I'll record an update. The list for TechHelp requests is pretty long tho.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Expert 13.
 

 
 
 

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: 12/5/2024 5:14:04 AM. PLT: 1s