MSU Sptn said:
I have a form set up to grab email addresses stored in a text box on a
different form. When I try to send the emails, an error occurs
stating that the closed form cannont be found. Is there a way to
grab data from a text box on a closed form?
Forms don't hold data -- the tables to which they are bound do. Forms
are just windows on the data. You can't get data from a form that is
closed, but you can go out to the table where the data is stored and get
it.
Check the form design to find out what table contains the email-address
field you want, and what the name of the field is in that table (it may
be the same as the name of the text box, or it may not). Then you can
use the DLookup function to pull the value in that field from that
table, for a record whose criteria you specify. Note that you will
probably have to specify criteria in the DLookup expression to identify
which, of all the records in the table, holds the specific e-mail
address you want.