I am stuck on how to align the sub form in the ess.sd.open main form. Any help will be appreciated. Kindly see the attachment.
You can use Grid Preview in Forms Designer.
Make a note of the exact X.Y coordinates of the fields on the form.
As an example, let's say the Caption is at x=2 and is 38 units wide, and the text box is at x=40 and is 60 units wide.
When creating the subform, put your subfom caption and fields at the same positions and size them identically. When placing the subform on your main form, place it at the X=0 position.