Originally Posted by
boblarson
First off, you need to use the WHERE clause to get to the other information UNLESS the other information is going to be entering a new record for that part of the info. And, in order to have the correct info to use, you would need to issue a save
first before attempting to open the next form. So, I take it that you hav separate tables for each form? Is that correct?
In the WHERE clause of the macro I am currently working on, this is what I have written:
Code:
[Forms]![frmDischarges]![MRNTxtBx]=[Forms]![frmResources]![MRNTxtBx]
When I try running the code in my form, I get a message box asking for a parameter value. I click OK, click on the button that opens the Discharges form, and it still doesn't display the correct patient information.
Each form is based on a separate table and the information is displayed in a subform based within a form that displays the patients Last Name, First Name, and MRN. Those fields are derived from the Patient's table, which is related to all the other tables in the database (via MRN).
Where would I place the Me.Dirty = False code?
I am using MS Access 2007.