J
John S. Ford, MD
I'm using DoCmd.OpenForm to open a mainform and its subform using a WHERE
statement from a command button on another form:
DoCmd.OpenForm "frmMainForm", , , WHERE statement, acFormReadOnly
I want the user to only to be to read the record in the mainform without
editing or adding a new record.
However, I want the SUBform to be in acFormAdd that is I want my user to be
able to read the previous records in the subform using the navigation
buttons and be able to add new records.
How can the datamode argument of the OpenForm method be different for the
Mainform and the subform?
John
--
-------------------------------------------------------
John S. Ford, MD, MPH
Assistant Professor of Medicine
David Geffen School of Medicine at UCLA
Harbor-UCLA Medical Center
(e-mail address removed)
http://califmedicineman.blogspot.com
statement from a command button on another form:
DoCmd.OpenForm "frmMainForm", , , WHERE statement, acFormReadOnly
I want the user to only to be to read the record in the mainform without
editing or adding a new record.
However, I want the SUBform to be in acFormAdd that is I want my user to be
able to read the previous records in the subform using the navigation
buttons and be able to add new records.
How can the datamode argument of the OpenForm method be different for the
Mainform and the subform?
John
--
-------------------------------------------------------
John S. Ford, MD, MPH
Assistant Professor of Medicine
David Geffen School of Medicine at UCLA
Harbor-UCLA Medical Center
(e-mail address removed)
http://califmedicineman.blogspot.com