I am using crystal to export some reports to excel. the user has chioces on what location he/she wants to run the report on. I then pass a value to the form that gets exported to excel.
now, the way it is now is if there is no records
If ds.Tables("Table").Rows.Count = 0 Then
it display's a message and in my code I exit sub, but stll goes to the screen that would hold the data to export. since there is no records then screen is blank just showing the value I passed.
what I want to do is If ds.Tables("Table").Rows.Count = 0
Then redirect the user back to the previous screen where he/she selects the locations.
thanks in advance
now, the way it is now is if there is no records
If ds.Tables("Table").Rows.Count = 0 Then
it display's a message and in my code I exit sub, but stll goes to the screen that would hold the data to export. since there is no records then screen is blank just showing the value I passed.
what I want to do is If ds.Tables("Table").Rows.Count = 0
Then redirect the user back to the previous screen where he/she selects the locations.
thanks in advance