dicepackage
03-24-2011, 06:01 AM
I have a function that runs and updates my database by importing e-mail information into Outlook. I currently have a Yes/No field in the database called "lock" that I check once the query has been run so it is not repeating multiple times. I will be doing this multiple times and have noticed it can really bog things down when scanning the folder.
When updating the database I am currently using a Dlookup to check if the field lock is checked. If it is False it will run a query that imports about five fields into my database. I am wondering would it perhaps be any faster to just eliminate the Dlookup statement in favor of an IIF statement to check for the lock field's status.
When updating the database I am currently using a Dlookup to check if the field lock is checked. If it is False it will run a query that imports about five fields into my database. I am wondering would it perhaps be any faster to just eliminate the Dlookup statement in favor of an IIF statement to check for the lock field's status.