G
Guest
I have a control on a main form that captures two columns worth of data from
a secondary form. The data is collected in the form of a select query that
draws an ID number and a first and last name all from the secondary
(contacts) form. It displays the first and last name, but the ID field is
the one saved via a query to the table.
Now, I've added a button on the main form that needs those same first and
last names for interaction with my email program. It nees the actual names,
not the id.
In the code for my email program interaction, it's set up where the name to
be emailed is "hard-wired" into the code, and appears like this "some name"
with the quotes being part of the code as well.
In VBA, can I:
1. Change that "some name" to a string variable somehow so that the value is
dynamic based on information found in the form on which the button is
located, and
2. Somehow use that first and last name that appears in the unbound column
as the value of the string variable created in #1?
Thanks for any help.
CW
a secondary form. The data is collected in the form of a select query that
draws an ID number and a first and last name all from the secondary
(contacts) form. It displays the first and last name, but the ID field is
the one saved via a query to the table.
Now, I've added a button on the main form that needs those same first and
last names for interaction with my email program. It nees the actual names,
not the id.
In the code for my email program interaction, it's set up where the name to
be emailed is "hard-wired" into the code, and appears like this "some name"
with the quotes being part of the code as well.
In VBA, can I:
1. Change that "some name" to a string variable somehow so that the value is
dynamic based on information found in the form on which the button is
located, and
2. Somehow use that first and last name that appears in the unbound column
as the value of the string variable created in #1?
Thanks for any help.
CW