G
Guest
Is it possible to use the DLookup function 3 times connected by AND in the
criteria for running a macro for data entry? The issue, I think, is that a
master table with an autonumbered primary key, may be part of overall data
entry. Say that EventID is an autonumbered field that is related to unique
combinations of site, date, and time. If one were to enter a new record for
the master tables and junction table, would it not be important to determine
if the site, date, and time were the same as a prevous record. If so, the
EventID of that previous record should be the EventID of the current record
being entered. It seems that a macro with the specified condition would do
the trick. Thus, is it possible that DLookup could be used for site, date,
and time in association with macro actions? The user could enter site, date,
and time on an unbound form with a control to run the macro (or code).
criteria for running a macro for data entry? The issue, I think, is that a
master table with an autonumbered primary key, may be part of overall data
entry. Say that EventID is an autonumbered field that is related to unique
combinations of site, date, and time. If one were to enter a new record for
the master tables and junction table, would it not be important to determine
if the site, date, and time were the same as a prevous record. If so, the
EventID of that previous record should be the EventID of the current record
being entered. It seems that a macro with the specified condition would do
the trick. Thus, is it possible that DLookup could be used for site, date,
and time in association with macro actions? The user could enter site, date,
and time on an unbound form with a control to run the macro (or code).