Chrisjack001
asked on
Automatically updating a field
I have a form called “Scheduling-Add”. When the patient name is selected from the drop down I want the Date of Birth (if available) for that patient to automatically populate in the “DOB” field My form doesn’t do that now. How can I accomplish this goal. Attached is a copy of my database with the form. Thanks in advance.
Invoice-7-7-2001-91611.accdb
Invoice-7-7-2001-91611.accdb
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks LSMConsulting
The way you have it can work, using the DBLookup, but its MUCH slower, and you cannot guarentee you won't have issues with matching patients, if a name is spelled differently, or 2 patients have the same name.
=DLookUp("DOB","Patient","
There seems to be other codes running that keeps undoing my changes, so I can't verify that this code works. Here's the inferior method you can try:
=DLookUp("DOB","Patient","