BIGGY
Apr 21st, 2008, 04:01 PM
Unfortunately in the database I'm working in there's one large table where a lot of data gets dumped because our developers were too lazy to create the tables and fields properly. One report that I've created pulls a number of items such as
Vehicle Model, Circumstance, Incident
Those 3 example fields above are in a table with this and a lot more data, so for example, to get a report of the above info I need to write a formula for each item
Formula Column 1
if Userfield.Description = 'Model' then Userfield.Userfieldvalue
Formula Column 2
if Userfield.Description = 'Circumstance' then Userfield.Userfieldvalue
etc...
Now the end user also wants to be able to select or type in specific Models, Circumstances, and Incidents. So either they type or I create a drop down which let's them select something like
Vehicle Model = Ford and Circumstance = Rollover
I can setup the parameters and get the records to display where EITHER the model is a Ford OR the circumstance is a rollover, but not both. This is giving me a hard time because Ford and Rollover come from the same exact field name. I'm looking to do this in the 'Select' statement, I haven't tried but figure this can easily be done by suppressing the groups that don't have these values, however then the report takes much longer since the query digs through the entire table. Any suggestions? Hopefully I've explained my scenario clearly. Thanks!
Vehicle Model, Circumstance, Incident
Those 3 example fields above are in a table with this and a lot more data, so for example, to get a report of the above info I need to write a formula for each item
Formula Column 1
if Userfield.Description = 'Model' then Userfield.Userfieldvalue
Formula Column 2
if Userfield.Description = 'Circumstance' then Userfield.Userfieldvalue
etc...
Now the end user also wants to be able to select or type in specific Models, Circumstances, and Incidents. So either they type or I create a drop down which let's them select something like
Vehicle Model = Ford and Circumstance = Rollover
I can setup the parameters and get the records to display where EITHER the model is a Ford OR the circumstance is a rollover, but not both. This is giving me a hard time because Ford and Rollover come from the same exact field name. I'm looking to do this in the 'Select' statement, I haven't tried but figure this can easily be done by suppressing the groups that don't have these values, however then the report takes much longer since the query digs through the entire table. Any suggestions? Hopefully I've explained my scenario clearly. Thanks!