C
Chris Strug
Hi,
Pretty much as the title says, I've been updating an app that my company
uses and have noticed that in a lot of places it uses the VBA DLookUp
command to retrieve information (for example, detecting if a record exists).
Presumably all these DLookUps are a leftover from before the project was
updated from an MDB.
I was wondering, is it more efficient to retrieve information like this by
executing a SELECT statement embedded in an ADO Command object.
Certainly from a portability point of view this would seem to be the way
forward (should I ever want to migrate the front end to a stand-alone VB
app) but I was wondering about it from a performance point of view - is the
ADO command object more efficient than using a the DLookUp function?
Any and all advice is gratefully received.
Thanks
Chris.
Pretty much as the title says, I've been updating an app that my company
uses and have noticed that in a lot of places it uses the VBA DLookUp
command to retrieve information (for example, detecting if a record exists).
Presumably all these DLookUps are a leftover from before the project was
updated from an MDB.
I was wondering, is it more efficient to retrieve information like this by
executing a SELECT statement embedded in an ADO Command object.
Certainly from a portability point of view this would seem to be the way
forward (should I ever want to migrate the front end to a stand-alone VB
app) but I was wondering about it from a performance point of view - is the
ADO command object more efficient than using a the DLookUp function?
Any and all advice is gratefully received.
Thanks
Chris.