Hi. This is my first posting. Thank you for your help.
I work for a utility company. Some of our customers buy gas and electricity from us, some buy just one or the other.
I have built a form that has a button on it that people can click after they enter a customer's account number. When they click the button, Access goes to two different tables (one for Electric and one for Gas) and looks up that customers' electric usage and gas usage from the last year in two local tables. The form has separate fields for the customer's electric usage, gas usage, electric revenue, etc, using DLookups (a separate DLookup for each field). If a customer buys only electricity from us, when Access gets to the DLookup to look for that customer's gas usage, I get an error number 94 because there is no gas record.
How do I check to see if a record was found so it doesn't throw this error?
Thank you again for all your help.