I am trying to construct an on click event procedure for a command button that has an If statement. The "logic" is as follows:
cmd button opens form, form is based on parameter query prompting for ID number.
If Query returns record, Form1 opens.
If ID number does not exist in table, query returns no record, then open Form2.
How can one say "If query returns no record" or "If Form is Empty" in VB?
Or am I barking up the wrong tree.
Thanks!!
cmd button opens form, form is based on parameter query prompting for ID number.
If Query returns record, Form1 opens.
If ID number does not exist in table, query returns no record, then open Form2.
How can one say "If query returns no record" or "If Form is Empty" in VB?
Or am I barking up the wrong tree.
Thanks!!