Hi, I have a Mainform and a Subform that are linked by a command button. Mainform has a combo box with Customer names. The subform show details about the customers. The mainform loads blank. When the mainform is blank, the subform also loads blank. But what I want is if the mainform is blank, then I do not want the subform to open until the mainform has corresponding data.
I am looking for some event that can trigger the subform to open only when there is an existing record in the customer table (mainform). I have searched the web but could not find any relevant solutions. My ideal solution is, if mainform has no data then the user cannot open the subform or user should get a message informing them that data is required in the mainform.
Please let me know if this is confusing...
Thanks,
I am looking for some event that can trigger the subform to open only when there is an existing record in the customer table (mainform). I have searched the web but could not find any relevant solutions. My ideal solution is, if mainform has no data then the user cannot open the subform or user should get a message informing them that data is required in the mainform.
Please let me know if this is confusing...
Thanks,