I have a user input page that constructs a SQL statement and sends it to a Crystal Report Viewer.
The problem is that if a user selects a record by its main key field "Track Number" no other criteria need be selected, and I would like to go ahead and send the request to the report without any further processing.
In my old VBA version of the program I just used a GoTo statement and jumped to the report output section.
I have been looking in the help but as yet have not forund a successfull way to do what I want. I did try enclosing the code in a Function and a Sub but neither option didn't seem to work.
Anyone have any suggestions? I would very much apprciate.
The problem is that if a user selects a record by its main key field "Track Number" no other criteria need be selected, and I would like to go ahead and send the request to the report without any further processing.
In my old VBA version of the program I just used a GoTo statement and jumped to the report output section.
Code:
GoTo Report .....
.....
[i]skipped code[/i]
.....
Report:
[i]code to be executed[/i]
I have been looking in the help but as yet have not forund a successfull way to do what I want. I did try enclosing the code in a Function and a Sub but neither option didn't seem to work.
Anyone have any suggestions? I would very much apprciate.