I am working on a CRM database for my company. We manufacture devices that are installed in clinics around the US. It is common that a doctor will use different machines in different locations. I want to be able to track this. To this end I made a table and associated form Doctors, and in this form I want to be able to have a list box to show which clinics (machines) the doctor is associated with. This data is coming from the Customer table, and I'll call it List Box A. I want the user to be able to select the clinic from a drop down or list box (List Box A), and have that selected item transfer to the list box in the Doctors table (List Box B). I have some experience with Excel VBA but it doesn't seem to be helpful with Access. I tried this code:
where cboAffiliatedClinic is coming from the Customer table, and lboAffiliatedClinic is in the Doctors table, but it's not working. I also tried it in different events, with no luck. Any suggestions are greatly appreciated.
Code:
Private Sub cboAffiliatedClinic_AfterUpdate()
lboAffiliatedClinic.Value = cboAffiliatedClinic.Value
End Sub