If you have a table on a web page and the table is well
structured for a database, you can use it as a table of your database. That
is, you can import it in Microsoft Access. Like a normal text file, a
typical HTML document can contain anything. This means that you should not
attempt to import just any HTML file into your database. When in doubt, you
should first check it. A good candidate to be imported should have all the
necessary tags of an HTML table: table, tr (for the records),
and td (for the columns). As long as the table is well created inside
of the document, Microsoft Access can identify, analyze, and decide whether
it is ready to be imported.
To import an HTML file in Microsoft Access, on the
Ribbon, click External Data and, in the Import section, click the More
button and click HTML Document. The steps to follow are the same for a text
document.
You can transfer a Microsoft Access table and its data
to a web page and you have many options. If you are using an application
such as Microsoft FrontPage or Microsoft Expression Web, you can copy and
paste. To do this:
Some other applications do not support copy and paste.
An alternative is to export the table to HTML. To save a table as HTML, in
the Navigation Pane:
This would open the Export - HTML Document dialog box
indicating the folder where the file will be saved, followed by the name of
the file itself and its .html extension. Eventually, when the file has been
saved, it would be complete with all the normal HTML tags. If you want the
file to directly be part of a web site or a web project, you can change the
path to point to your web folder. If you are only interested in the table,
let the file be saved. Then, open the code of the document, which you can do
with any text editor such as Notepad, copy only the code of the table and
paste it in the desired section of your actual web page.
Microsoft Access does not provide its own native means
of connecting a database to the Internet, but it can be used as a server
database accessed from the web. To make this happen, you can do everything
manually or you would use an external application such as Microsoft Visual
Studio, CodeGear Delphi.NET, Microsoft Expression Web, or many other
applications. You can create an ASP application, a PHP web site, an ASP.NET
project, etc.
There are various ways you can use Microsoft Word with a
Microsoft Access database. The simplest way consists of copying and pasting.
To transfer a database table, in the Navigation Pane of Microsoft Access,
you can right-click a table and click Copy. In a Microsoft Word document,
you can paste in the desired section. The whole table, including its columns
and all the records, would be created in the document. Instead of the whole
object, first open a table in Microsoft Access, select only some columns
and/or some records, copy them, and then paste them in a Microsoft Word
document.
As opposed to copying from a database table and pasting
to a table, you may want the reverse. That is, you can copy a table from a
Microsoft Word document. To do this, in Microsoft Word, select the table in
a document and copy it. Start a table in Microsoft Access and paste in the
Add New Field box.
Mail merging allows you to use data on your database to
create letters, labels, envelopes, and other documents that require external
data originating from another document. When performing a mail merge, you
usually do not need all the fields that are part of a table.
To start a mail merge, in the Navigation Pane:
This would open the Microsoft Word Mail Merge Wizard:
And click OK. Microsoft Word would open. In the Mail
Merge window, if you want to create a letter to be sent out, accept the
Letters radio button and click Next. In the second page of the wizard, you
will have the choice of creating a new Microsoft Word document or using an
existing document. If you want to create a new document, click or accept Use
the Current Document. If you click Start From Existing Document, you will be
asked to specify the document, in which case you should click Open, select
the document, and click Open:
After this, the Mail Merge window would come back to the
Use Current Document option. Click Next: Select Recipients.
To insert other types of items, in the Mail Merge
window, you can click the Address Block link, the Insert Address Block
dialog box would come up. The Insert Address Block dialog box is made of
various sections. It allows you to specify a type of greeting and other
pieces of information to be inserted in the document. After making the
selection(s), you can click OK.
After creating the document and adding the necessary
fields to it, you can preview and review it. To do this, in the Mail Merge
window, click the Next: Preview Your Letters link. When you do this, the
letter appears with the value(s) of the first record. To review the document
with the other values, in the Mail Merge window, you can click the previous
After reviewing the document, in the Mail Merge window,
you can click the Next: Complete The Merge link. You can then save, print,
and manage the document. In the same way, you can create labels or
envelopes.
If you don't have Microsoft Office Word 2010, skip
this section
There are unlimited types of files you can import in a
Microsoft Access database, including files created from known Microsoft
Office applications and files from any other type of application, as long as
the document has been prepared appropriately.
To import a dBase table, a Paradox table, or a Lotus
1-2-3 spreadsheet, in the Import section of the External Data tab of the
Ribbon, click More and click the type of file you want to import:
Depending on the type of file, a wizard would come up
and guide you.
If you had created an address book in Microsoft
Office Outlook, you can use it to create a table in your database.
You would import it. When you do this, Microsoft Access is able to
recognize all the fields you would have used in the address book and
create the table columns. To import an address book, on the Ribbon,
you can click External Data and, in the Import section, click More
-> Outlook Folder. This would open the Get External Data - Outlook
Folder dialog box with the top radio button selected as the default.
In most cases, you can accept it and click OK. This would start the
Import Exchange/Outlook Wizard with some of the folders from your
Microsoft Outlook installation. You can expand a node and select the
desired object:
After selecting the object, the file, or the address
book, click Next. The next pages of the wizard would assist you in
identifying the columns of the list and complete the table.
|
Data Import and Export
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment