G
Guest
Hello All,
I have created a form, which has a calendar I create using labels, a label for each day. When I load the form I run code to assign each label a day, and gather the information for that day. In our database we have a shift, there is a shift on each day, and in each shift there are orders, and in each there are order items/cases. So each time I load a day's information I loop through each order and loop through each order item to count the cases. Each shift can have 25-30 orders. So you can see it can be looping through 25 days, 25 orders on each day, and anywhere from 1 - 60 cases on each order and it takes it's time. Not to mention it is over a network too. And add to it the data on this form must be refreshed, so I gather the information each time they use any of the features on the form. It is fairly useless the way it is. Any ideas on how to approach this another way or to speed up the queries.
-Rick
I have created a form, which has a calendar I create using labels, a label for each day. When I load the form I run code to assign each label a day, and gather the information for that day. In our database we have a shift, there is a shift on each day, and in each shift there are orders, and in each there are order items/cases. So each time I load a day's information I loop through each order and loop through each order item to count the cases. Each shift can have 25-30 orders. So you can see it can be looping through 25 days, 25 orders on each day, and anywhere from 1 - 60 cases on each order and it takes it's time. Not to mention it is over a network too. And add to it the data on this form must be refreshed, so I gather the information each time they use any of the features on the form. It is fairly useless the way it is. Any ideas on how to approach this another way or to speed up the queries.
-Rick