Hi Abhiram,
If the requried field (Those fields having the red border) are blank while submitting then it would throw an error that these fields can not be left blank.
In the click event of the SaveAs and/or Submit button you can write some scripts so that it would first check the validation of the fields, if all the fields are validated then it would carry out the required operation. If not, then it would alert the user.
For ex : In the click event of SaveAs button you can try the following.
if (form1.Page1.Page1_subform1.execValidate())
{
app.execMenuItem("SaveAs");
}
else
{
}
You can directly write one code which would validate the entire form. Here I have given the example of a subform. If you want to validate few fields in a particular subform you can use this. Else you can try with form1.execValidate() function.
Thanks.
Bibhu.