Hi!
I'm trying to make a report that compares the results of the tests of several samples in a lab. I have a form where the users enter the samples they want compared (up to, say, 10 total), and the report prints from there.
Now, the only way I could think of to get the data I need from the various tables was this: I based the report on the comparison table (which basically just lists the sample numbers for each comparison, with each comparison being a different record). I then made each sample number on the report be a combo box. The row source of each combo is based on a query that links the 3 or 4 tables that contain all the testing data with the appropriate sample number (so each of the 30,000 rows of the query lists a sample number followed by all its 30-some-odd test results -- yes, this is huge!). This way, I can reference the columns for each sample combo to populate the text boxes that show its results.
This works, but it's EXTREMELY slow. I guess that's what happens when the query needs to be run for every sample number combo box... yikes! Plus, referencing the combo box columns seems to turn the data into strings, which destroys my forced decimal places, and makes adding impossible. I can't help but think there must be a better way!
If anybody had the courage to read all this, any tips, big or small, would be greatly appreciated!
Thanks!
I'm trying to make a report that compares the results of the tests of several samples in a lab. I have a form where the users enter the samples they want compared (up to, say, 10 total), and the report prints from there.
Now, the only way I could think of to get the data I need from the various tables was this: I based the report on the comparison table (which basically just lists the sample numbers for each comparison, with each comparison being a different record). I then made each sample number on the report be a combo box. The row source of each combo is based on a query that links the 3 or 4 tables that contain all the testing data with the appropriate sample number (so each of the 30,000 rows of the query lists a sample number followed by all its 30-some-odd test results -- yes, this is huge!). This way, I can reference the columns for each sample combo to populate the text boxes that show its results.
This works, but it's EXTREMELY slow. I guess that's what happens when the query needs to be run for every sample number combo box... yikes! Plus, referencing the combo box columns seems to turn the data into strings, which destroys my forced decimal places, and makes adding impossible. I can't help but think there must be a better way!
If anybody had the courage to read all this, any tips, big or small, would be greatly appreciated!
Thanks!