Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Indicate Record in a Table
Darren McMartin 
    
2 years ago
I have Form "A", based on Table "A". On Form "A" I have a button to open up a form based on Table "B". Is there a way of indicating in Form "A" whether there is a related record in Table "B" or not?

I was thinking of adding a Textbox to Form "A" and putting a DLookup function in it, but I haven't been able to get it to work.
Adam Schwanz  @Reply  
           
2 years ago
So, for instance, you have customer table and a customer form, then you have a button to open up an invoice form for that customer.

You can just code the button with a d function, I usually do count
If NZ(DCOUNT("*","InvoiceT","CustomerID=" & CustomerID),0)>0 Then 'There is an invoice
DoCmd.OpenForm "InvoiceF",,,"CustomerID=" & CustomerID
Else 'There is not an invoice
Msgbox "No Invoice" 'or you could open the form to a new record to make it
End If
Juan C Rivera  @Reply  
            
2 years ago
I like this think I will try it in my new project... Thanks Adam.

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: 8/21/2026 9:42:54 AM. PLT: 0s