G
Guest
This is probably pretty simple but I am new here......
I have a form that has a button that will preview a report based on the
contents of the form. I would like the OnClick event to check for content on
the form and if content is missing terminate the preview and return to the
form.....
if the textbox is called textbox then I think something like this should work
if me.textbox = "" then msgbox "There is insufficient informtion to print"
and then some logic that cancels the print preview and returns to the form...
Thanks in advance....
Greg
I have a form that has a button that will preview a report based on the
contents of the form. I would like the OnClick event to check for content on
the form and if content is missing terminate the preview and return to the
form.....
if the textbox is called textbox then I think something like this should work
if me.textbox = "" then msgbox "There is insufficient informtion to print"
and then some logic that cancels the print preview and returns to the form...
Thanks in advance....
Greg