D
dbnDavid
Suppose I have a table in which there are two fields called, let's say,
Sender and Receiver. Sometimes (eg. when the value of a third field is
"holiday") the same person is both Sender and Receiver. How can I automate
this, so that when "Joe Bloggs" is entered for Sender on a "holiday"
occasion. Access will copy that name to the Receiver field? (My real data is
more complicated, but this gives the bones of what I'm trying to do.)
I've tried creating a form based on a query that selects for "holiday", and
where "holiday" is the default value for its field. I then tried to create a
macro that will copy the Sender control value to the Receiver control,
getting it to run from the On Lost Focus properties on the Event tag for the
Sender control.
But I know very little about macros and when I tried it I got an error
message saying "The object doesn't contain the Automation object 'Queries'".
Where can I go from here?
Sender and Receiver. Sometimes (eg. when the value of a third field is
"holiday") the same person is both Sender and Receiver. How can I automate
this, so that when "Joe Bloggs" is entered for Sender on a "holiday"
occasion. Access will copy that name to the Receiver field? (My real data is
more complicated, but this gives the bones of what I'm trying to do.)
I've tried creating a form based on a query that selects for "holiday", and
where "holiday" is the default value for its field. I then tried to create a
macro that will copy the Sender control value to the Receiver control,
getting it to run from the On Lost Focus properties on the Event tag for the
Sender control.
But I know very little about macros and when I tried it I got an error
message saying "The object doesn't contain the Automation object 'Queries'".
Where can I go from here?