T
t venet
i have a form we'll call "Concomitant Medications" which
has two controls comprising the primary key: "Patient
Number" and "Med Number". this form is intended to collect
information from patients who enroll in a study over a
period of time having to do with particular medications
they might be taking. each record in the underlying table
is intended to collect only information about one drug and
so the 'Med Number' field is intended to differentiate
between one drug and the next for each patient. 'Med
Number' is not intended to identify the drug per se,
merely to allow for 'repeats' with the same 'Patient
Number', so for example, Aspirin might have a value
of 'Med Number' 1 for one patient and a value of 'Med
Number' 4 for another patient because the data enterer
entered it first for the first patient and fourth for the
other one.
the point of this is to serve as a prelude to this 'how
to' question: basically, i think it'd be kind of neat to
have ms a2k handle the job of incrementing the values
of 'Med Number'.
Patient Number Med Number
321331 1
321331 2
321331 3
091431 1
091431 2
877861 1
so in the above example the three hypothetical patients
would've had med number 1~3, 1~2 and just 1 entered
automatically in the Med Number field after the data entry
clerk selected the value of Patient Number from a combobox
of registered patient numbers.
thanks in advance!
has two controls comprising the primary key: "Patient
Number" and "Med Number". this form is intended to collect
information from patients who enroll in a study over a
period of time having to do with particular medications
they might be taking. each record in the underlying table
is intended to collect only information about one drug and
so the 'Med Number' field is intended to differentiate
between one drug and the next for each patient. 'Med
Number' is not intended to identify the drug per se,
merely to allow for 'repeats' with the same 'Patient
Number', so for example, Aspirin might have a value
of 'Med Number' 1 for one patient and a value of 'Med
Number' 4 for another patient because the data enterer
entered it first for the first patient and fourth for the
other one.
the point of this is to serve as a prelude to this 'how
to' question: basically, i think it'd be kind of neat to
have ms a2k handle the job of incrementing the values
of 'Med Number'.
Patient Number Med Number
321331 1
321331 2
321331 3
091431 1
091431 2
877861 1
so in the above example the three hypothetical patients
would've had med number 1~3, 1~2 and just 1 entered
automatically in the Med Number field after the data entry
clerk selected the value of Patient Number from a combobox
of registered patient numbers.
thanks in advance!