Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Letter Writer < Multi Field Combo | Export HTML >
Back to Letter Writer    Comments List
Upload Images   @Reply   Bookmark    Link   Email  
Combo field
Rajashree Natarajan 
      
4 years ago
Is there a way to write a letter to the physician regarding the patient? The physician name is a combo field in the customer form. Also wd like to pull the address of the physician from the physician table. What wd the VBA look like if it can be done?
Alex Hedley  @Reply  
            
4 years ago
Rajashree Natarajan OP  @Reply  
      
4 years ago
I am still learning and a novice at VBA. I don't. Know how to Dlookup a combo field  from the customer form? Or am I doing Dlookup from the physician table? How would I write the VBA for this? Do I have to add the PhysicianID to the Contact form ?
Adam Schwanz  @Reply  
            
4 years ago
You would make an unbound text box and make the control source something like

=DLOOKUP("PhysicianAddress","PhysicianTable","PhysicianID=" & ComboBoxName)

You'll have to replace your field names as necessary. This is assuming that you're using the "standard" combo box setup Richard shows all the time of the ID field being the bound field and then the name field.
Rajashree Natarajan OP  @Reply  
      
4 years ago
Thank you for this. Will it work in this case as the combo box in in the customer form and not in the contact form. I need to pull the name from the combo box in the customer form to populate on the contact form. This will help if I have to send a letter to the physician. I already have a letter template to the physician in my template combo in the contact form.
Adam Schwanz  @Reply  
            
4 years ago
If the combobox you're using as the criteria is on another form, you just need to refer the correct location, instead of ComboBoxName do Forms!CustomerF!ComboBoxName
Richard Rost  @Reply  
          
4 years ago
This video might help you some: AfterUpdate.

Keep in mind, if you're still a beginner, just be patient. These are advanced topics. CAN you do what you want to do? Sure. It's definitely possible. You just need to learn the right steps in order to get there. You're still on Beginner Level 6. This stuff is BEYOND Expert into Developer level material. Patience. No pun intended (See what I did there? Patients? Aha ha ha haha). No? Not funny? :(
Rajashree Natarajan OP  @Reply  
      
4 years ago
LMAO...thank you. I am obsessed with my database....SOMUCH TO LEARN....SO LITTLE TIME...LOL. Thank you for helping and supporting me.

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

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/19/2025 5:30:32 PM. PLT: 1s