Hi
Some of my recent posts have been kind of monologues.
I know that they are challenging and nobody may have any idea about
them.
However, I keep posting, take this NG as a record keeper for me, and
by chance maybe someone can suggest something.
This is what I'm doing:
In a form that simulates the floor plan of a zone in a warehouse, I
have 450 textboxes representing 450 pallet spaces in that zone.
Upon opening the form, I need to identify which spaces are occupied
and which are not (to format the respective textboxes background)
The goal: users need to have a bird's eyes view of warehouse plan
occupancy.
To accomplish that goal:
Option 1:
- open a recordset of all occupied space in that zone
- Loop through and compare each of the 450 textboxes with locations in
the recordset to identify whether the space is occupied, then
respectively format the textbox
Option 2:
- Loop through each of the 450 textboxes
- Within the loop open a recordset with an exact location (pulling
only 1 - or no - record) then depending on whether recordcount = 0 or[color=blue]
>0, respectively format the textbox.[/color]
I'm not sure which approach is more efficient.
Or any other algorythm to achieve the same goal?
Thanks for suggestion (if any)
NB
Some of my recent posts have been kind of monologues.
I know that they are challenging and nobody may have any idea about
them.
However, I keep posting, take this NG as a record keeper for me, and
by chance maybe someone can suggest something.
This is what I'm doing:
In a form that simulates the floor plan of a zone in a warehouse, I
have 450 textboxes representing 450 pallet spaces in that zone.
Upon opening the form, I need to identify which spaces are occupied
and which are not (to format the respective textboxes background)
The goal: users need to have a bird's eyes view of warehouse plan
occupancy.
To accomplish that goal:
Option 1:
- open a recordset of all occupied space in that zone
- Loop through and compare each of the 450 textboxes with locations in
the recordset to identify whether the space is occupied, then
respectively format the textbox
Option 2:
- Loop through each of the 450 textboxes
- Within the loop open a recordset with an exact location (pulling
only 1 - or no - record) then depending on whether recordcount = 0 or[color=blue]
>0, respectively format the textbox.[/color]
I'm not sure which approach is more efficient.
Or any other algorythm to achieve the same goal?
Thanks for suggestion (if any)
NB
Comment