macro to create new row with information

notaloser

Registered User.
Local time
Today, 02:43
Joined
Jun 21, 2006
Messages
35
**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
 
Last edited:

Users who are viewing this thread

Back
Top Bottom