Question:
How do you get a reference to the historyid that the form is going to use when it performs an insert?
Answer:
1) Add “Edit” control to History Details form. Set “Visible” property to false and “Text” property to (HISTORY:HISTORYID).
2) Use OnValidate or OnAfterPost event of form for get HistoryID: edtHistoryID.Text .



