Version:Crystal 8.5 Pro
OS:Windows 2000 Pro
DB
ervasive 2000
I have a report that if I hard code the parameter "customer number", it takes less than a second to run it. But I need the users to enter a customer number so I added a parameter.
The users only know the customers by their phone number and the database uses a string of length 12 for customer number so I added the following code.
BeforeReadingRecords:
Dim x As String
x = {?CustNum}
while len(x) <12
x = "0" + x
wend
formula = x
Problem is that when I use this as a parameter in the report it now takes 30 seconds to gather data.
Any ideas?
OS:Windows 2000 Pro
DB
I have a report that if I hard code the parameter "customer number", it takes less than a second to run it. But I need the users to enter a customer number so I added a parameter.
The users only know the customers by their phone number and the database uses a string of length 12 for customer number so I added the following code.
BeforeReadingRecords:
Dim x As String
x = {?CustNum}
while len(x) <12
x = "0" + x
wend
formula = x
Problem is that when I use this as a parameter in the report it now takes 30 seconds to gather data.
Any ideas?