Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Letter Writer < Inventory | Export HTML >
 
Letter Writer
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   9 months ago


Back to Letter Writer
 

Combo field Upload Images   Link  
Rajashree Natarajan 
8 months 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
8 months ago
DLOOKUP
Rajashree Natarajan
8 months 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
8 months 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
8 months 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
8 months 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
8 months 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
8 months 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, below.
 


Back to Letter Writer Comments
 

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

You may want to read these articles from the 599CD News:

6/30/2022Sales Chart
6/27/2022Rounding Errors
6/26/2022Calendar Seminar Students Only
6/24/2022Multi Combo One Field
6/23/2022Modal & Popup
6/21/2022Week of Year
6/16/2022Value List Combo
6/15/2022Weekday
6/14/2022Project Budgets
6/14/2022Find Record
 

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
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
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn