hey...
what I have is 2 subforms (A and B), A's underlying recordset is based off a remote table, while B's recordset is a local temp table. What happens is that when a user dblclicks on a record in A it gets added to B. When this happens I want the record in A to have its color changed. So far all this works, but I'm worried about speed.
To get the color to update in A (using a conditional format that uses DLookup to see if the record is in B) I have to requery or refesh or recalc the entire recordset and that takes too long (seems that recalc takes the least at .5 sec for a recordset of 500, but have the potential to have up to 10,000 records in A). I think I basically get the flow of the program, each individual record in A calls DLookup (so this can be lengthy). So I'm wondering if there is a faster/better way to do this? thanks
what I have is 2 subforms (A and B), A's underlying recordset is based off a remote table, while B's recordset is a local temp table. What happens is that when a user dblclicks on a record in A it gets added to B. When this happens I want the record in A to have its color changed. So far all this works, but I'm worried about speed.
To get the color to update in A (using a conditional format that uses DLookup to see if the record is in B) I have to requery or refesh or recalc the entire recordset and that takes too long (seems that recalc takes the least at .5 sec for a recordset of 500, but have the potential to have up to 10,000 records in A). I think I basically get the flow of the program, each individual record in A calls DLookup (so this can be lengthy). So I'm wondering if there is a faster/better way to do this? thanks