Docsity

Access collect data by using e mail messages, Study notes of Database Management Systems (DBMS)

Toggle sidebar
bg1
COLLECT DATA BY USING E-MAIL MESSAGES
Applies To: Access 2007
Microsoft Office Access 2007 makes it easy to gather data from people who
are located anywhere on the globe, such as members of your sales team,
survey participants, or contacts. Office Access 2007 works with Microsoft
Office Outlook 2007 to help you to generate and send an e-mail message
that includes a data entry form. When the recipients fill out the forms and
send them back to you, the replies are processed according to your
specifications. For example, if you choose to have the replies automatically
processed, the contents of the form are added to the appropriate table in
your database as soon as the reply reaches your inbox. This new feature,
the Collect data through e-mail messages Wizard, can save you hours that
you might have otherwise spent entering data on behalf of your users.
In this article
When to use data collection
Before you get started
Stepping through the wizard
After you send the e-mail message
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25

Partial preview of the text

Download Access collect data by using e mail messages and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

COLLECT DATA BY USING E-MAIL MESSAGES

Applies To: Access 2007

Microsoft Office Access 2007 makes it easy to gather data from people who are located anywhere on the globe, such as members of your sales team, survey participants, or contacts. Office Access 2007 works with Microsoft Office Outlook 2007 to help you to generate and send an e-mail message that includes a data entry form. When the recipients fill out the forms and send them back to you, the replies are processed according to your specifications. For example, if you choose to have the replies automatically processed, the contents of the form are added to the appropriate table in your database as soon as the reply reaches your inbox. This new feature, the Collect data through e-mail messages Wizard, can save you hours that you might have otherwise spent entering data on behalf of your users.

In this article

When to use data collection

Before you get started

Stepping through the wizard

After you send the e-mail message

When to use data collection

The following list explores some scenarios that can utilize this new feature.

ļ‚· Surveys You want to do a survey and compile the results in Access. You first create an Access database that has tables necessary to store the results. You then use the wizard to generate a form that includes the questions (presented as fields) and mail them to the survey participants. When participants reply, their answers go directly to the table that you specify in the database. ļ‚· Status reports Whether it is the latest inventory levels or up-to-date information on pending issues, your team can send you e-mail messages that contain the current information at regular intervals to keep you posted. ļ‚· Event management When organizing an event, such as a conference or training, you can send one or more forms as an e-mail message for gathering contact information, travel and hotel preferences, and so on. If you choose to have the replies automatically processed, the participants are able to change their preferences at any time without having to notify you, and you always have access to the latest data for decision making purposes.

To make it easier for you to generate and send the data entry form as an e- mail message, you use the Collect data through e-mail messages Wizard to

o Office Outlook 2007 and Office InfoPath 2007 (both optional) If you send an InfoPath form, the recipient must have both Office Outlook 2007 and Office InfoPath 2007 installed to view and edit the InfoPath form.

  1. Identify the destination database. The database can be in either .mdb or .accdb format. In addition, .mde and .accde files are supported.

If you don't want to use an existing database, you must create a new one.

  1. Identify or create the tables that you want populated with the data from the user replies to your message. If you are collecting data for existing tables, ensure that the tables are not read-only and that you have the necessary permissions to add to or update their contents.

NOTE:

o Fields of the following data types cannot be collected by using e-mail messages: ļ‚§ Attachment ļ‚§ AutoNumber ļ‚§ Multi-valued fields ļ‚§ OLE o If your data collection operation populates two or more tables, you must create a select query and use that as the form's record source. Ensure that the query includes all of the required fields from the underlying tables. If you are using an existing query, ensure that the query is not read-only and that you have the necessary permissions to add to or update its contents.

  1. In most cases, you will be able to decide whether you want to store the collected data as new records, or to use the data to update existing records. In the following situations, you will only be able to store the data as new records: o You are collecting data to populate two or more tables. o The underlying table does not have a primary key field. The primary key values are necessary to map each reply to an existing record. If your destination table does not have a primary key field, either add it now or assign an existing field that has unique values as a primary key.

o The underlying table does not have any records. If the table is empty, the wizard assumes that you want to add records. o The e-mail addresses of the recipients are not stored as a field in the database. When collecting data to update records, you will not be able to manually type the addresses in the wizard-generated message. The address field must be in the destination table, or in a table that has a relationship with the destination table. For example, if you are collecting data to update the Orders table, the addresses must be stored as a field either in the Orders table or in a related table (such as the Customers table).

Stepping through the wizard

You are now ready to run the wizard that assists you with setting up the data collection process.

In this section

Start the wizard

Choose the type of data entry form

Specify what you want to do with the data

Select the form fields

Specify how you want to process the data

Select how you want to specify the e-mail addresses of the recipients

Specify the e-mail address field

Customize the e-mail message

Create and send e-mail messages

  1. Click Next.

The wizard prompts you to select the type of form you want to create.

Choose the type of data entry form

In this step, you must choose to create either an HTML form or an InfoPath form. As mentioned earlier in this article, an Access form cannot be used to collect data through e-mail messages — you must either use an HTML form or an InfoPath form that you create in the wizard.

If InfoPath is not installed on your computer, the Microsoft Office InfoPath form option is unavailable.

The type of form that you create depends on two factors — ease of use, and whether all of your recipients have the necessary software installed on their computers. An InfoPath form is much easier to use, but an HTML form involves fewer software requirements.

An InfoPath form offers a better data entry and editing environment. In addition, an InfoPath form can perform preliminary validation of the data when the user clicks the Send button, giving the user a chance to correct incorrect data before they send the reply to you.

To summarize, an InfoPath form has several advantages over an HTML form, but an HTML form can be viewed and edited by any user whose e- mail client supports HTML.

  1. In the wizard, select the Microsoft Office InfoPath form option only if all of your recipients have both Office InfoPath 2007 and Office Outlook 2007 installed. Otherwise, select the HTML form option.
  2. Click Next.

Type of form

Add or update

Result

HTML Add Recipients will be able to send you no more than one new record in each reply. InfoPath Add Recipients will be able to send you multiple new records in each reply. They can do this by clicking Insert a row at the bottom of the e-mail message.

NOTE: After you specify the fields that you want to include in your message, a page in the wizard appears on which you can set several options. On this page, you can set the Outlook folder in which replies will be processed, and also set options for how you want those replies to be processed. HTML Update Each e-mail message will include one or more pre-filled forms, depending on the number of records that correspond to a single e-mail address. The recipient will be able to review and update each of the forms in the message. InfoPath Update Each e-mail message will include one or more pre-filled forms, depending on the number of records that correspond to a single e-mail address. The recipient will be able to review and update each of the forms in the message.

In addition, the user can send additional records by clicking Insert a row at the bottom of the e-mail message. Later in this article, you will learn how to prevent the user from adding new records to an update request.

  1. In the wizard, select Collect new information only or Update existing information.

It is important to note that if your goal is add new records, you can type the e-mail addresses in the address box of the e-mail message when the message is created. However, if your goal is to update existing data, the e- mail addresses of the recipients must be stored as a field in the underlying table or query, or in a related table.

  1. Click Next.

The wizard prompts you to select the fields that you want to include in the form.

Select the form fields

In this step, you pick the fields that you want to include in the form.

It is not generally necessary to include every field that exists in the underlying table or query in the form. However, there are two exceptions:

ļ‚· Required fields If you are collecting new records, the wizard will automatically include all fields whose Required property is set to Yes. If any record's required fields are blank, Access fails to add the record to the table.

  1. Click Next.

The wizard prompts you to specify how you want the replies processed.

Specify how you want to process the data

In this step, you make a very important decision regarding how you want the replies processed — automatically or manually. Note that manual processing in this context does not imply tedious data entry in Datasheet or Form view. It means only that you manually start the export operation to transfer the collected data to the destination table.

Automatic processing

If you choose to have the replies automatically processed, when the replies reach your mailbox, Outlook and Access work together to export the form contents of each of the replies to the destination tables in your database.

Automatic processing can save you considerable time and effort. Replies are successfully exported as long as the following conditions are met at the time the replies reach your mailbox:

ļ‚· Outlook must already be running on your computer. If Outlook is not running, processing starts the next time that you start Outlook. ļ‚· Access must be installed on your computer. ļ‚· The database must not be password-protected, and should not be open in Exclusive mode. The name or location of the database must not have changed since you sent the e-mail message. ļ‚· The names of the tables and queries, and the properties of the fields included in the form, must not have changed since you sent the e-mail message. ļ‚· You must still have the required permissions to add or update the contents of the underlying tables and query.

If one or more of these conditions are not met, automatic processing will fail. If processing fails, try fixing any issues, and then manually export the replies that failed. Any replies that reach your inbox after you resolve the issues continue to be processed automatically.

Allowing only updates to data

If you are updating data and you select the Automatically process replies and add data to check box, the Only allow updates to existing data check box becomes available. Select the check box if you don't want the user to be able to send new records. If you are only adding new data, the Only allow updates to existing data check box is not visible.

Manual processing

If you want to control when and which replies are processed, clear the Automatically process replies and add data to check box. In this case, the replies reach your inbox, but are not transferred to the database. You must manually select and right-click each reply in Outlook, and then click Export data to Microsoft Access in the shortcut menu to populate the database.

Use this dialog box to specify how you want the replies processed. If you want to manually process the replies, skip the next step.

  1. In the Collecting Data Using E-mail Options dialog box, review and, if necessary, change the settings in any of the following ways, and then click OK : o Discard replies from those to whom you did not send the message Select this check box if you want only those replies that were sent by the original recipients of your message to be automatically processed. Replies from other people are stored in the destination folder, but are not automatically processed. o Accept multiple replies from each recipient A recipient can send you multiple replies. Select this check box if you want only the first reply from each recipient to be processed automatically. The second and subsequent replies are stored in the destination folder, but are not automatically processed.

NOTE: This setting only controls the number of replies, and not the number of records within a single reply, that are processed. In other words, if you send an InfoPath form, a user is able to send you multiple records in a single

reply, and Access automatically processes all of the records in the reply, even if this check box is not selected.

o Only allow updates to existing data When recipients use an InfoPath form to update data, they can send you new records in addition to updates to existing records. Select this check box if you want to process only the updates to existing records. o Number of replies to be processed Type the total number of replies (from all recipients) that you want automatically processed. If you want all replies to be automatically processed, enter a large value, such as 5000, in the text box. Replies that are received after the specified value is reached are stored in the destination folder, but are not automatically processed. o Date and time to stop Specify when automatic processing of replies should stop for this e-mail message. Replies received after this date and time are stored in the destination folder, but are not automatically processed.

NOTE: To change these options at a later date, on the External Data tab, in the Collect Data group, click Manage Replies. In the Manage Data Collection Messages dialog box, select the message for which you want to change the settings, and then click Message Options. The changes you make in the dialog box affect all subsequent replies that you receive for that message.

  1. Click OK , and then click Close.

The next step depends on whether you are adding data or updating it. If you are adding new records, continue with the next section. If you are collecting data to update existing records, skip to the section Specify the e- mail address field.

Select how you want to specify the e-mail addresses of the recipients

If you are collecting new information only, you can specify the e-mail addresses in two ways:

ļ‚· If the field is in the current table or query, select The current table or query , select the field from the drop-down list, and then click Next. ļ‚· If the field that contains the recipients' e-mail addresses is not in the current table or query, use the following procedure: a. Select An associated table. b. In the drop-down list, select the field in the current table that joins it to the table that contains the addresses. This is usually an ID field. c. Do one of the following: ļ‚§ If the field that you select is associated with just one table, one additional drop-down list appears. Select the field that contains the e-mail addresses. ļ‚§ If the field that you select is associated with more than one table, two additional drop-down lists appear. In the first list, select the table that contains the e-mail addresses. In the second list, select the field. d. Click Next.

Associated tables are those that have relationships defined between them. To view or edit the relationships in your database:

When you choose to use an address field, you cannot preview or customize the e-mail message in Outlook. Instead, you do this in the wizard. In the next step, the wizard displays the default subject and body of the message, and you have the opportunity to customize it.

Customize the e-mail message

In this step, you review the components of the message and make necessary changes.

  1. In the Subject and Introduction fields, make the changes that you want.
  2. If you chose to use e-mail addresses that are stored in a field in the database, there is an additional choice you can make on this page. Under Add recipients' e-mail addresses in the: , select one of the options. Regardless of the option that you select, the users will receive the e-mail message. If you chose to enter the e-mail addresses in Microsoft Office Outlook, this choice is not available.
  3. Click Next.

Create and send e-mail messages

The wizard displays a page informing you that you can now create the message, and also shows you how to view e-mail status by using the Manage Replies command.