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 
Open a Form Based on Specific Criteria
Kathy Johnson 
      
9 months ago
I have a PayeeT that has both members and vendors in it. I have different input forms for each as I collect different information. How do I open my vendor form (or member form) based on the PayeeTypeID that has been assigned?  ex if PayeeTypeID = 21 DoCmd.OpenForm "MemberF" else DoCmd.OpenForm "VendorF"
Sandra Truax  @Reply  
         
9 months ago
I would suggest creating a separate table that would contain the entity. For example:

1.  Members
2.  Vendors
3.  Whatever you wanted it to be

You would put this ID in your payee table and you could filter using it.
Raymond Spornhauer  @Reply  
          
9 months ago
In the sub where you're opening the forms:

If NZ(PayeeTypeID,0) = 0 Then
     DoCmd.OpenForm "VendorF"
Else
     DoCmd.OpenForm "MemberF"
End If

Hope this helps,

-Raymond
Kevin Robertson  @Reply  
           
9 months ago
If you are storing both Vendors and Members in the Payee Table why not have only one Form with a Combo Box to determine the type of payee.

    DoCmd.OpenForm "PayeeF", , , "PayeeID=" & PayeeID
Kathy Johnson OP  @Reply  
      
9 months ago
Kevin, Too much information is needed for members so I have a demographic table for that information as ID Codes. It would make the form too unmanageable for the end user (me) when doing data entry. This way I can have the form with just the information I need for that entity. I will try the code you wrote above. Thanks.
Kathy Johnson OP  @Reply  
      
9 months ago
Sandra I tried that but was having difficulty putting them into a single payee combo box in my check ledger. I am already managing 2 different banks, 3 types of accounts (checking, savings, CDs, and petty cash), and a chart of accounts with sub categories (for tax purposes). Lots of data for members and minimal data for vendors. It has definitely be a wild ride putting this together. Trying to move from QuickBooks because of the expense on a Non-Profit. Once I get it done, it will be a template for the other 2 Non-Profits for which I am the Finance Officer/Treasurer.
Kevin Robertson  @Reply  
           
9 months ago
Kathy That's one of the reasons we need to see your Table structure and your Queries / Forms / Reports in Design View. It really does help us to help you if we can see what you are working with.

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: 6/21/2026 1:22:57 AM. PLT: 0s