Use one form to update different tables

  • Thread starter Thread starter Robbert
  • Start date Start date
R

Robbert

First of all: What i am doing is regarded as bad database design. I am
creating different tables with exactly the same structure, a normalized
situation with just one patients table would be preferred. However the data
in question is very privacy sensitive and needs to be fysically seperated
from the other data.
In this case there is a table with patients for every doctor. Now i need a
way to use one form with a different source table depending on the doctor
selected.

Can anyone help me do this?
 
In the On Load event of your form you can set the record source
Me.RecordSource = "Table you wish to use"

How you get the "Table you wish to use" is up to you. A combo box on a Menu
form maybe
Me.Recordsource = [Forms]![Menu]![ComboBoxName]
 
No worries Klatuu, I agree with you and don't feel offended at all.
Separation of the tables is a requirement specified by my client. I am in
favour of normalization and will take this up with my client. I tried to
persuade her earlier but will try again.

Dennis thanks for the reply, if needed i now know how to change the record
source.
 
Back
Top