G
Guest
Hello there,
I have a form bound to a table (I'll call them the patient form and the
patient table); there I enter data for each patient and have a AddNew button
that saves what I have entered and empties the fields so that I can enter the
data for a new patient. I just added to my database a main menu form with
command buttons so that the user can select an specific department. So if the
user clicks on the "Department A" button, the patient form is open and the
header (a text box) reads "Department A". The message in the textbox changes
based on the button that the user clicks on in the main menu.
What I would like to do is that when I click on the AddNew button in the
form, the new record not only gets saved in the table but also that a field
in the patient table, called "Department" gets the value of the text box in
the form. In short, what I'm trying to accomplish is that if the user has
already selected "Department A" in the main menu, he would not have to enter
the same info every time a new patient comes in.
Ideas?
Thanks!
I have a form bound to a table (I'll call them the patient form and the
patient table); there I enter data for each patient and have a AddNew button
that saves what I have entered and empties the fields so that I can enter the
data for a new patient. I just added to my database a main menu form with
command buttons so that the user can select an specific department. So if the
user clicks on the "Department A" button, the patient form is open and the
header (a text box) reads "Department A". The message in the textbox changes
based on the button that the user clicks on in the main menu.
What I would like to do is that when I click on the AddNew button in the
form, the new record not only gets saved in the table but also that a field
in the patient table, called "Department" gets the value of the text box in
the form. In short, what I'm trying to accomplish is that if the user has
already selected "Department A" in the main menu, he would not have to enter
the same info every time a new patient comes in.
Ideas?
Thanks!