**edit, this may be better in the forms section**
hey,
i have a form that displays the information for medical patients. inside this form, i have multiple subforms linked by HistNum (history number). some of these subforms include prescribed medications and different past appointments.
on this page i want a command button that will create a new row in a table displayed in a subform (for ex, a button to add a row in the drugs table, which is displayed in the presribed medications subform), with the history number of the current patient being displayed on the page already filled in.
in the presribed medications subform, i have all the fields except histnum displayed ON the form, and my current macro just opens the subform in its own window in Add entry mode, but this does not allow for the histnum to be filled in. how do i go about opening the subform in its own window in the add entry mode with the histnum pre-defined?
thanks, please ask about what i have not explained well enough
hey,
i have a form that displays the information for medical patients. inside this form, i have multiple subforms linked by HistNum (history number). some of these subforms include prescribed medications and different past appointments.
on this page i want a command button that will create a new row in a table displayed in a subform (for ex, a button to add a row in the drugs table, which is displayed in the presribed medications subform), with the history number of the current patient being displayed on the page already filled in.
in the presribed medications subform, i have all the fields except histnum displayed ON the form, and my current macro just opens the subform in its own window in Add entry mode, but this does not allow for the histnum to be filled in. how do i go about opening the subform in its own window in the add entry mode with the histnum pre-defined?
thanks, please ask about what i have not explained well enough
Last edited: