Vous êtes sur la page 1sur 20

Data I mport and Export

M icr osoft Access and M icr osoft Excel


Expor ting to a M icr osoft Excel Spr eadsheet
As a spreadsheet applicat ion wit h various analysis t ools, pr ovides som e feat ures t hat are not available in Microsoft r esult s can be difficult t o get in t he dat abase. Ther efor e, unusual t hat you want t o use t he dat a of a t able in You have var ious opt ions. Probably t he easiest way t o t ransfer dat a from Micr osoft Access t o a spr eadsheet involves copying and past ing. To st art , in Microsoft Access, you can open a t able in Dat asheet View t hen select one, a few , or all recor ds. Aft er select ing t he record( s) , you can copy t hem , open Micr osoft Excel, click t he cell t hat w ould host t he t op- left value, and past e. I f you use t he copy and past e t echnique, you w ould have t o open t he t able fir st . Anot her t echnique consist s of export ing, and you can do it w it hout first opening t he t able:

Microsoft Excel Access or som e it w ould not be a spreadsheet .

Before expor t ing a t able, in t he Navigat ion Pane, you can first click t he t able. Then, on t he Ribbon, click Ext er nal Dat a . I n t he Export

sect ion, click t he Excel but t on

I n t he Navigat ion Pane, right - click t he desired t able, posit ion t he m ouse on Export , and click Excel

This would open t he Export - Excel Spreadsheet dialog box w it h t he pat h w here t he file will be saved. The default folder is t he My Docum ent s:

The dialog box pr ovides var ious opt ions. For exam ple, if you have Micr osoft Office Excel 2007 , you can accept t he form at w it h .xlsx ext ension. I f you have a previous version, click t he ar row of t he File Form at com bo box and select t he ver sion. Aft er m aking t he select ions, you can click OK. When t he export ing is over, a m essage box would let you know.

Pr actical Lear ning: U sing a Spr eadsheet


1. St art Micr osoft Access 2. Open t he Clarksville I ce Cr eam 1 dat abase you st ar t ed in Lesson 2 and cont inued in Lesson 4 3. To creat e a new t able, on t he Ribbon, click Cr eat e and, in t he Tables sect ion, click Table

I m por ting a M icr osoft Excel Spr eadsheet


I f you had worked on a spr eadsheet t o cr eat e a list of it em s and you w ant t o conver t t hat list int o a t able useful in a dat abase, you can. Microsoft Access allows you t o im port a spreadsheet from Microsoft Excel, Cor el Paradox, Lot us 1 - 2- 3, or one of m any ot her spreadsheet applicat ions on t he m arket . Before im por t ing t he spr eadsheet , you should prepare it and you have m any opt ions. When creat ing t he spreadsheet , you m ay have cr eat ed a list anyw her e on t he docum ent , w it hout a t it le, and only t he list of values. Here is an exam ple:

I n t his case, t he spreadsheet is ready. When you im port such a spreadsheet , Microsoft Access w ould be able t o figur e out where t he list st ar t s and w here it ends. Micr osoft Access can even ident ify t he colum n nam es and t heir r ecor ds ( w here t he records st art and w here t hey end) . The dat abase engine can also ident ify t he dat a t ype of each colum n, based on t he values used in t heir fields. On t he ot her hand, you m ay have cr eat ed a spreadsheet t hat includes sect ions ot her t han t he list you want t o use in your dat abase. Here is an exam ple:

I f you t ry t o direct ly im port such a spreadsheet , t he dat abase engine m ay get confused. I t w ould not know w her e t he act ual list st art s and where it ends. I f you insist , you can st ill im port t he spreadsheet but you w ould get unpr edict able result s. I f you creat e a spreadsheet in Micr osoft Excel, Corel Paradox, or Lot us 1- 2- 3, and if t he spreadsheet cont ains a m ix of t he desir ed list and ot her it em s, you can cr eat e a " nam e" for t he list . To creat e a nam e in Microsoft Excel, select t he list :

Then, on t he Ribbon, click Form ulas. I n t he Defined Nam es sect ion, click t he Define Nam e... but t on. I n t he New Nam e dialog box, specify t he nam e and click OK. To cr eat e a nam e in t he ot her applicat ions, check t heir docum ent at ion. Aft er cr eat ing, pr eparing and saving t he spr eadsheet , you can im port it . To do t his in Microsoft Access, st art a dat abase:

On t he Ribbon, click Ext ernal Dat a. I n t he I m por t sect ion, click t he Excel but t on I f you have creat ed a t able t hat w ill r eceive t he dat a, in t he Navigat ion Pane, right - click t hat t able, posit ion t he m ouse on I m por t , and click Excel

This would st art t he Get Ext ernal Dat a - Excel Spreadsheet wizar d. You would t hen have t o specify t he file t hat holds t he spreadsheet , and click OK. I n t he second page of t he w izar d, you w ould be asked t o ident ify t he sect ion ( sheet ) wher e t he t able exist s. You w ould also have t he opport unit y t o provide som e det ails about t he dat a being im por t ed. I nst ead of m anually im por t ing a spr eadsheet , you can select t he values in a spr eadsheet , copy t hem , and past e t hem in a t able in Microsoft Access.

Pr actical Lear ning: I m por ting a M icr osoft Excel Spr eadsheet

I f you do n ot h ave M icr osoft Office Ex ce l 2 0 0 7 , sk ip t h is sect ion 1. From t he resour ces t hat accom pany t hese lessons, open t he Clar ksville I ce Cream .xlsx file. Not ice a spr eadsheet nam ed Em ployees 2. Select cells from C5 t o F10 3. On t he Ribbon, click Hom e and, in t he Clipboard sect ion, click Copy 4. Ret urn t o Microsoft Access and click t he Hom e t ab on t he Ribbon 5. On t he t able, click Add New Field and, in t he Clipboard sect ion of t he Hom e t ab of t he Ribbon, click t he Past e but t on

6. When you r eceive a m essage box let t ing you know t hat a few records w ould be creat ed, click Yes 7. Double- click I D, t ype Em ploye eI D and press Ent er 8. To save t he t able, on t he t it le bar, click t he Save but t on 9. Type Em ploye e s as t he nam e of t he new t able and click OK 10. Close t he t able W h et he r you h a ve M icr osoft Off ice Ex ce l 2 0 0 7 or n ot , con t inu e t h e le sson h e r e 1. On t he r ibbon, click Ext er nal Dat a

2. I n t he I m port sect ion, click Excel 3. I n t he Get Ext ernal Dat a - Excel Spr eadsheet , click Browse... 4. Locat e t he folder t hat cont ains t he r esources for our lessons and select it 5. Select t he Clarksville I ce Cream .xlsx file and click Open 6. I n t he Get Ext ernal Dat a - Excel Spr eadsheet , click OK 7. I n t he first page of t he w izard, click t he Show Nam ed Ranges r adio but t on and, in t he list , click Payr ollI nfor m at ion

8. Click Next 9. I n t he second page of t he wizar d, click t he Fir st Row Con t a ins Colum n H e a din gs check box

10. Click Next 11. I n t he t hir d page of t he w izar d, accept all default s and click Next 12. I n t he fourt h page of t he wizard, accept all default s and click Next 13. Set t he nam e of t he t able t o Pa yr oll and click Finish 14. I n t he last page of t he w izar d, click Close

15. I n t he Navigat ion Pane, double- click t he Payroll t able t o open it 16. Double- click I D, t ype Pa yr ollI D and press Ent er 17. Close t he Payr oll t able I f you do not h a ve M icr osoft Office Ex ce l 2 0 0 7 , follow t h e sa m e st eps t o im por t t h e Em ploye e s spre a dsh ee t .

M icr osoft Access and Text Files


I m por ting a Text File
You can creat e a t able using dat a from a t ext file. I f you int end t o im por t a t ext docum ent , form at it so t hat Microsoft Access can r ecognize where a field st ar t s and where it ends. The file can be creat ed using Not epad. I f t he file is from anot her t ype of applicat ion, you can first conver t it s dat a t o t ext , save it as a t ext file, and t hen im port it . I f you ar e creat ing t he ( t ext ) file in Not epad, t he delim it at ion of a field is usually done by pressing Tab aft er creat ing t he fields' cont ent . I nst ead of t he Tab key, you can also use a com m a or a sem i- colon t o separat e t wo fields. Since a field is usually m ade of m ore t han one w ord ( such as an address) , you can enclose t he cont ent of each field in double quot es, as in "1600 Pennsylvania Avenue" . A file t hat cont ains t he dat a t o be im por t ed m ust also indicat e w her e a r ecor d st art s and wher e it ends. I f you are cr eat ing t he file in a t ext edit or , t he delim it at ion of a r ecor d is done by pressing Ent er at t he end of each record. To im port a t ext file in Microsoft Access:

On t he Ribbon, click Ext ernal Dat a and, in t he I m port sect ion, click t he Text File but t on I f you had pr eviously creat ed a t able t hat w ould receive t he values, in t he Navigat ion Pane, r ight - click t hat t able, posit ion t he m ouse on I m port , and click Text File

Pr actical Lear ning: I m por ting a Text D ocum ent


1. To st ar t a new dat abase, click t he Office but t on and click New 2. Set t he nam e t o Red Oa k H igh Sch ool 3. On t he Ribbon, click Ext er nal Dat a 4. I n t he I m port sect ion, click Text File 5. I n t he Get Ext ernal Dat a - Text File dialog box, click t he Brow se but t on 6. Locat e t he r esources t hat accom pany t hese lessons and select it 7. Click St udent s.t xt and click Open 8. On t he dialog box, click OK 9. On t he fir st page of t he I m por t Text Wizar d, accept t hat t he t ext be Delim it ed and click Next

10. I n t he second page, accept t hat t he delim it er be set t o Com m a and check t he box st at ing: First Row Cont ains Field Nam es

11. Click Next 12. Accept t he default s of t he t hir d page of t he wizar d and click Next 13. Accept t o cont ent s of t he four t h page of t he w izard and click Next 14. Accept t o im por t t o t able St u den t s and click Finish 15. You receive a confir m at ion m essage w hen t he t able has been im por t ed. Click Close

16. I n t he Navigat ion Pane, double- click t he St udent s t able t o open it 17. Double- click I D, t ype St ude nt I D and press Ent er 18. Save and close t he St udent s t able

Expor ting a Text File


The easiest w ay t o use dat a from a Micr osoft Access dat abase t o an ext ernal applicat ion is t o save it as plain t ext . The reason is t hat alm ost ever y applicat ion t hat deals w it h dat abases can im port t ext and conver t it int o a spreadsheet or a dat abase t able . This is only possible if t he t ext file is appr opriat ely for m at t ed. For t unat ely, if you ask Microsoft Access t o save a t able t o t ext , it w ould t ake care of for m at t ing it . To save a t able as t ext :

I n t he Navigat ion Pane, click t he t able you w ant t o expor t . On t he Ribbon, click Ext er nal Dat a and, in t he Export sect ion, click t he Text File but t on I n t he Navigat ion Pane, right - click t he t able t hat holds t he dat a, posit ion t he m ouse on Export , and click Text File

This w ould open t he Expor t - Text File dialog box w it h t he nam e of t he file using t he .t xt ext ension. The default folder w her e t he file would be saved is My Docum ent s. I f you want anot her , you can select it by clicking t he Br owse but t on. Once you ar e r eady t o export , you can click OK. This w ould open t he Export Text Wizard t hat you can follow:

You would have various opt ions t o specify how you want Micr osoft Access t o form at t he docum ent . You would also choose w het her t o include t he colum n header s or not .

M icr osoft Access and X M L


I m por ting an X M L File
An XML file is essent ially a docum ent m ade of at least one t able. Norm ally, t he t able is ver y w ell st r uct ur ed because t hat 's t he essence of XML. An XML docum ent can cont ain dispar at e dat a w it h various parent s and different child nodes all over t he place. Ther efore, before im port ing an XML file t o your dat abase, you should be fam iliar wit h it s st ruct ure. A t ypical XML file st ar t s w it h a root node: <?xm l ver s i on=" 1. 0" st andal one=" yes" ?>

Under it , t he global parent node st ar t s and closes it self: <?xm l ver s i on=" 1. 0" st andal one=" yes" ?> <FunFur ni t ur e> </ FunFur ni t ur e> This global par ent node is not t he t able. I nside t hat node, you should have a node t hat would represent a t able and it can repeat it self as m any t im es as necessar y: <?xm l ver s i on=" 1. 0" st andal one=" yes" ?> <FunFur ni t ur e> <Em pl oyees > </ Em pl oy ees> <Em pl oyees > </ Em pl oy ees> </ FunFur ni t ur e> Not ice t hat , in our exam ple, w hat we refer t o as a record is in plural. This is not requir ed. I t is j ust our choice. I n t his exam ple, t he Em ployees node is our t able. Put it anot her w ay, each Em ployees node r epresent s t he t able we want . I nside each t able, you should have t he nam e of each colum n followed by it s value: <?xm l ver s i on=" 1. 0" st andal one=" yes" ?> <FunFur ni t ur e> <Em pl oyees > <Em pl oyeeNum ber >924795</ Em pl oy eeNum ber > <Fi r st Nam e>Donal d</ Fi r st Nam e> <Las t Nam e>Tr i pl et on</ Las t Nam e> <Ti t l e>Sal es M anager </ Ti t l e> </ Em pl oy ees> <Em pl oyees > <Em pl oyeeNum ber >274957</ Em pl oy eeNum ber > <Fi r st Nam e>J eanne</ Fi r st Nam e> <Las t Nam e>W ool ey </ Last Nam e> <Ti t l e>Sal es Ass oc i at e</ Ti t l e> </ Em pl oy ees> <Em pl oyees > <Em pl oyeeNum ber >684078</ Em pl oy eeNum ber > <Fi r st Nam e>I r ene</ Fi r s t Nam e> <Las t Nam e>Pol s en</ Last Nam e> <Ti t l e>Sal es Ass oc i at e</ Ti t l e> </ Em pl oy ees> <Em pl oyees > <Em pl oyeeNum ber >297149</ Em pl oy eeNum ber > <Fi r st Nam e>M oni c a</ Fi r st Nam e> <Las t Nam e>Jack son</ Las t Nam e> <Ti t l e>Sal es Ass oc i at e</ Ti t l e> </ Em pl oy ees> </ FunFur ni t ur e> The group of nodes inside t he t able r epresent s t hat colum ns and t heir values. Of course an XML docum ent can be m ore t han t hat but t his is a t ypical st ruct ur e of a norm al XML docum ent t hat can be im port ed. Aft er creat ing and saving an XML file, you can im port it in Microsoft Access. To do t his, in t he Ext ernal Dat a t ab of t he Ribbon and in t he I m port sect ion, click t he XML File but t on . This would display t he Get Ext ernal Dat a - XML File dialog box. Aft er select ing t he file and clicking OK, a dialog w ould com e up t o help you ident ify t he t able t o use in t he docum ent . I t w ould display t he node( s) t hat indicat e( s) a t able.

Pr actical Lear ning: I m por ting an X M L File


1. To st art a new dat abase, click t he Office but t on and click New 2. Set t he nam e t o Fun Fu rn it u r e 3. On t he Ribbon, click Ext ernal Dat a 4. I n t he I m port sect ion, click XML File 5. I n t he Get Ext ernal Dat a - XML File dialog box, click t he Brow se but t on 6. Locat e t he resour ces t hat accom pany t hese lessons and select it 7. Click em ployees.xm l and click Open 8. I n t he list , click t he Em ployees node and accept t o im port bot h t he st ruct ur e and t he dat a of t he t able

9. Click OK 10. You receive a confirm at ion m essage. Click Close 11. I n t he Navigat ion Pane, double- click t he Em ployees t able t o open it 12. Double- click I D, t ype Em ploye e I D and press Ent er 13. Close t he Em ployees t able

Expor ting to X M L
I f you have creat ed a ( com plet e or sem i- com plet e) dat abase t hat you want t o use out side of Micr osoft Access, one way you can t ransfer it is t o change it s for m at int o XML. For t unat ely Micr osoft Access can t ake care of t he whole process for you. I n fact , besides export ing a t able, you can also ask Microsoft Access t o cr eat e bot h a schem a file and a st yle sheet for t he t able. To expor t a t able t o XML form at , in t he Navigat ion Pane:

Right - click t he t able t hat holds t he dat a, posit ion t he m ouse on Expor t , and click XML File Click t he t able you w ant t o expor t . On t he Ribbon, click Ext ernal Dat a and, in t he Expor t sect ion, click Mor e - > XML File

The Expor t - XML File dialog box t hat com es up allows you t o ver ify t he nam e of t he file t hat w ill be creat ed and t he pat h w here it will go. Once you are r eady, you can click OK. A dialog box w ould com e up asking which one( s) of t he t hree files you w ant t o have creat ed:

I f you want t o cr eat e a m or e elabor at e XML applicat ion wit h advanced opt ions, you can click t he More Opt ions but t on. This w ould close t he previous dialog box and open anot her one:

This dialog box allow s you t o specify m ore det ails on how t he t able should be export ed. For exam ple, you can change t he encoding schem e you w ant . The t w o opt ions available are UTF- 8 ( w hich should be enough for char act ers in US English) and UTF- 16 ( if you are planning t o use Unicode or int er nat ional charact ers) for char act er s refer red t o as wide char act ers. By default , w hen you ask Micr osoft Access t o cr eat e an ext ensible st yle sheet ( XSL) , it would creat e t he file using t he sam e nam e as t he t able. I f you w ant a different nam e, you can click t he Transform s but t on. This allow s you eit her t o select a different file or t o creat e t he file w it h a different nam e. Also, by default , if you ask Micr osoft Access t o cr eat e a schem a, it creat es an XSD file using t he sam e nam e as t he t able. I f you w ant a different nam e, you can click t he Schem a t ab and specify anot her nam e for t he file. Aft er m aking your select ions, you can click OK. The file( s) you specified would be cr eat ed in t he folder t hat w as indicat ed.

M icr osoft Access and the W eb


I m por ting an H TM L File
I f you have a t able on a web page and t he t able is w ell st ruct ur ed for a dat abase, you can use it as a t able of your dat abase. That is, you can im por t it in Microsoft Access. Like a norm al t ext file, a t ypical HTML docum ent can cont ain anyt hing. This m eans t hat you should not at t em pt t o im port j ust any HTML file int o your dat abase. When in doubt , you should first check it . A good candidat e t o be im port ed should have all t he necessar y t ags of an HTML t able: t a ble , t r ( for t he r ecor ds) , and t d ( for t he colum ns) . As long as t he t able is well cr eat ed inside of t he docum ent , Microsoft Access can ident ify, analyze, and decide whet her it is ready t o be im port ed. To im port an HTML file in Micr osoft Access, on t he Ribbon, click Ext ernal Dat a and, in t he I m por t sect ion, click t he More but t on and click HTML Docum ent . The st eps t o follow ar e t he sam e for a t ext docum ent .

Pr actical Lear ning: I m por ting a Text D ocum ent


1. To st ar t a new dat abase, click t he Office but t on and click New 2. Set t he nam e t o Con t r ibut or Fu n dr a isin g 3. On t he Ribbon, click Ext er nal Dat a 4. I n t he I m port sect ion, click Mor e and click HTML Docum ent 5. I n t he Get Ext ernal Dat a - Text File dialog box, click t he Brow se but t on 6. Locat e t he r esources t hat accom pany t hese lessons and select it 7. Click fundraising.ht m and click Open 8. Click OK 9. I n t he first page of t he I m port HTML Wizar d, click First Row Cont ains Field Nam es

10. Click Next 11. Accept t he default s of t he second page of t he wizard and click Next 12. Accept t o cont ent s of t he t hird page of t he wizard and click Next 13. Accept t he suggest ed nam e of t he t able as Fu n dr a isin g and click Finish 14. You receive a confir m at ion m essage. Click Close 15. I n t he Navigat ion Pane, double- click t he Em ployees t able t o open it 16. Double- click I D, t ype Fu n dr a isin gI D and pr ess Ent er 17. Close t he Fundr aising t able

A M icr osoft Access Table on a W eb Page


You can t ransfer a Micr osoft Access t able and it s dat a t o a w eb page and you have m any opt ions. I f you are using an applicat ion such as Micr osoft Front Page or Microsoft Expression Web, you can copy and past e. To do t his:

I f you want t o copy all colum ns and all r ecor ds, in t he Navigat ion Pane of Microsoft Access, r ight - click t he t able and click Copy. I n t he w eb page of t he applicat ion ( such as Micr osoft Fr ont Page or Micr osoft Expression Web) , right - click t he sect ion you want on t he w eb page and click Past e. Her e is an exam ple:
Em ployees

Em ploye e s

9 L 5C b [ b I { W { w a 5 { { w 9 Y t w a t a { w

I f you want t o copy all colum ns and all r ecor ds, open t he t able in Microsoft Access, press Ct rl + A t o select everyt hing. Press Ct rl + C t o copy. I n t he w eb page of t he applicat ion, click t he sect ion you w ant on t he web page and press Ct rl + V t o past e I f you want t o copy only som e colum ns and/ or som e records, open t he t able in Microsoft Access. Make t he select ion. Right - click t he select ion and click Copy. I n t he w eb applicat ion, r ight - click t he sect ion you want on t he web page and click Past e or click t he sect ion and press Ct r l + V

Som e ot her applicat ions do not suppor t copy and past e. An alt ernat ive is t o expor t t he t able t o HTML. To save a t able as HTML, in t he Navigat ion Pane:

Right - click t he t able t hat holds t he dat a, posit ion t he m ouse on Expor t , and click HTML Docum ent Click t he t able you w ant t o expor t . On t he Ribbon, click Ext ernal Dat a and, in t he Expor t sect ion, click Mor e - > HTML Docum ent

This would open t he Expor t - HTML Docum ent dialog box indicat ing t he folder w her e t he file will be saved, followed by t he nam e of t he file it self and it s .ht m l ext ension. Event ually, when t he file has been saved, it would be com plet e w it h all t he norm al HTML t ags. I f you want t he file t o dir ect ly be part of a w eb sit e or a web proj ect , you can change t he pat h t o point t o your w eb folder. I f you are only int erest ed in t he t able, let t he file be saved. Then, open t he code of t he docum ent , w hich you can do w it h any t ext edit or such as Not epad, copy only t he code of t he t able and past e it in t he desir ed sect ion of your act ual w eb page.

A M icr osoft Access D atabase on the W eb


Micr osoft Access does not pr ovide it s ow n nat ive m eans of connect ing a dat abase t o t he I nt ernet , but it can be used as a ser ver dat abase accessed from t he web. To m ake t his happen, you can do ever yt hing m anually or you w ould use an ext er nal applicat ion such as Microsoft Visual St udio, CodeGear Delphi.NET, Microsoft Expression Web, or m any ot her applicat ions. You can creat e an ASP applicat ion, a PHP w eb sit e, an ASP.NET proj ect , et c.

M icr osoft Access and M icr osoft W or d


I ntr oduction
Ther e ar e various ways you can use Microsoft Wor d w it h a Micr osoft Access dat abase. The sim plest w ay consist s of copying and past ing. To t ransfer a dat abase t able, in t he Navigat ion Pane of Micr osoft Access, you can r ight - click a t able and click Copy. I n a Microsoft Wor d docum ent , you can past e in t he desired sect ion. The w hole t able, including it s colum ns and all t he r ecor ds, would be creat ed in t he docum ent . I nst ead of t he w hole obj ect , first open a t able in Microsoft Access, select only som e colum ns and/ or som e r ecor ds, copy t hem , and t hen past e t hem in a Microsoft Wor d docum ent . As opposed t o copying fr om a dat abase t able and past ing t o a t able, you m ay want t he r ever se. That is, you can copy a t able fr om a Microsoft Wor d docum ent . To do t his, in Microsoft Word, select t he t able in a docum ent and copy it . St art a t able in Microsoft Access and past e in t he Add New Field box.

M ail M er ge
Mail m erging allow s you t o use dat a on your dat abase t o creat e let t er s, labels, envelopes, and ot her docum ent s t hat requir e ext ernal dat a originat ing from anot her docum ent . When perform ing a m ail m er ge, you usually do not need all t he fields t hat ar e par t of a t able. Alt hough you can use all fields on a t able, you can creat e a query m ade only of fields you need for your docum ent . This w ould include t he nam es and addr esses of t he recipient s. To st ar t a m ail m erge, in t he Navigat ion Pane:

Click t he t able t hat holds t he inform at ion you w ant t o use. On t he Ribbon, click Ext ernal Dat a. I n t he Export sect ion, click More - > Mer ge it wit h Microsoft Office Wor d Right - click t he t able, posit ion t he m ouse on Export and click Mer ge it wit h Micr osoft Office Word

This w ould open t he Micr osoft Wor d Mail Merge Wizard. I f you w ant t o creat e a new docum ent , click t he second r adio but t on:

And click OK. Micr osoft Word would open. I n t he Mail Mer ge w indow , if you want t o creat e a let t er t o be sent out , accept t he Let t ers r adio but t on

Ot herw ise, you can click anot her r adio but t on for t he t ype of docum ent you w ant t o cr eat e. Then click t he Next link. I n t he second page of t he w izard, you can specify w het her t o cont inue w it h t he current ly opened docum ent or you want t o use a t em plat e. For our exam ple, you would accept t o use t he current docum ent and click t he Next link. The t hir d page of t he w izard w ant s you t o specify t he list t hat holds t he fields t hat will be used. I f you w ant t o creat e a new list , you can click t he Type A New List r adio but t on. Ot herwise, t o use t he t able you select ed in Microsoft Access, accept t he first radio but t on and m ake sur e it is specified in t he Use An Exist ing List sect ion:

Once t he list is ready, click t he Next link. You would t hen have t o creat e t he docum ent

When cr eat ing t he let t er, you can edit t o insert differ ent t ypes of it em s. To add a field from t he list , in t he Mail Mer ge w indow, you can click More I t em s. This w ould open t he I nser t Mer ge Field dialog box:

I n t he I nser t Merge Field, you can click t he field you want t o add and click I nsert . You can cont inue doing t his for each field you want t o add:

To inser t ot her t ypes of it em s, in t he Mail Merge w indow, you can click t he Addr ess Block link, t he I nser t Addr ess Block dialog box w ould com e up:

The I nsert Address Block dialog box is m ade of var ious sect ions. I t allows you t o specify a t ype of greet ing and ot her pieces of infor m at ion t o be insert ed in t he docum ent . Aft er m aking t he select ion( s) , you can click OK. Aft er creat ing t he docum ent and adding t he necessar y fields t o it , you can pr eview and r eview it . To do t his, in t he Mail Mer ge window , click t he Next : Pr eview Your Let t ers link. When you do t his, t he let t er appears wit h t he value( s) of t he first record. To r eview t he docum ent wit h t he ot her values, in t he Mail Mer ge w indow , you can click t he previous or t he next but t ons.

Aft er review ing t he docum ent , in t he Mail Merge window , you can click t he Next : Com plet e The Mer ge link. You can t hen save, print , and m anage t he docum ent . I n t he sam e way, you can creat e labels or envelopes.

M icr osoft Access and Other D ocum ents


I ntr oduction
Ther e are unlim it ed t ypes of files you can im por t in a Microsoft Access dat abase, including files cr eat ed from known Microsoft Office applicat ions and files fr om any ot her t ype of applicat ion, as long as t he docum ent has been pr epar ed appropr iat ely. To im port a dBase t able, a Par adox t able, or a Lot us 1 - 2- 3 spr eadsheet , in t he I m port sect ion of t he Ext ernal Dat a t ab of t he Ribbon, click More and click t he t ype of file you want t o im port :

Depending on t he t ype of file, a wizar d w ould com e up and guide you.

M icr osoft Office Outlook


I f you had cr eat ed an address book in Microsoft Office Out look, you can use it t o creat e a t able in your dat abase. You w ould im por t it . When you do t his, Micr osoft Access is able t o recognize all t he fields you w ould have used in t he address book and cr eat e t he t able colum ns. To im por t an addr ess book, on t he Ribbon, you can click Ext ernal Dat a and, in t he I m por t sect ion, click Mor e - > Out look Folder. This w ould open t he Get Ext ernal Dat a - Out look Folder dialog box w it h t he t op radio but t on select ed as t he default . I n m ost cases, you can accept it and click OK. This would st ar t t he I m port Exchange/ Out look Wizard wit h som e of t he folder s fr om your Microsoft Out look inst allat ion. You can expand a node and select t he desired obj ect :

Aft er select ing t he obj ect , t he file, or t he addr ess book, click Next . The next pages of t he w izar d w ould assist you in ident ifying t he colum ns of t he list and com plet e t he t able.

Lesson Sum m ar y

M CAS: U sing M icr osoft Office Access 20 0 7 Topics


E5 I m port dat a

Exer cises Yugo N ational Bank


1. Open t he Yugo Nat ional Bank1 2. Fr om t he r esources t hat accom pany t hese lessons, im port t he yugo_nat ional_bank_em ployees.ht m file ( it is an HTML docum ent ) . Specify t hat t he t op r ow will provide t he colum ns nam es. Let t he wizar d creat e a prim ary key and accept all default s. Aft er im por t ing, renam e t he t able as Em ploye e s . Open t he t able in Dat asheet View and change t he nam e of t he fir st colum n from I D t o Em ploye e I D 3. Fr om t he r esources t hat accom pany t hese lessons, im port t he yugo_nat ional_bank_cust om er s.t xt file ( it is a t ext file) . Specify t hat t he t op r ow will pr ovide t he colum ns nam es. Let t he wizard cr eat e a pr im ar y key and accept all default s. Aft er im por t ing, renam e t he t able as Cu st om e r s . Open t he t able in Dat asheet View and change t he nam e of t he first colum n fr om I D t o Cu st om e r I D

W atts A Loan
1. Open t he Wat t s A Loan1 dat abase 2. Use t he Table but t on of t he Tables sect ion of t he Ribbon t o cr eat e a new t able. Replace I D w it h Em ploye eI D . Use t he Add New Field colum n t o cr eat e t he following addit ional colum ns Fir st N a m e , La st N a m e , Tit le , W or k Ph on e , Addr ess , Cit y , St a t e , ZI PCode , Cou nt r y , and H om e Ph one . Save t he t able as Em ploye e s and a dd t he r e cor ds t o it

Vous aimerez peut-être aussi