Your SlideShare is downloading. ×
  • Like
Dad_1234
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply
Published

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
644
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
10
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Äàäëàãà: Access ïðîãðàìä øèíýýð ôàéë ¿¿ñãýõ Access ïðîãðàìä øèíýýð ôàéë ¿¿ñãýõ1. ¯¿ñãýõ ôàéëàà áàòëàí õàðàõ Íýãýí ñïîðòûí áàðààíû äýëã¿¿ðèéã æèøýý áîëãîí àâààä á¿òýýãäýõ¿¿í, õóäàëäàí àâàã÷, áîðëóóëàëòòàé õîëáîîòîé ºãºãäëèéã äàðààõ áàéäëààð çîõèîí áàéãóóëíà. (Íîîðîã)- á¿òýýýãäýõ¿¿íòýé õîëáîîòîé ºãºãäºë - Tselldata (á¿òýýýãäýõ¿¿íèé íýð, ¿íý)-- Ýçýíòýé õîëáîîòîé ºãºãäºë- TÂossDàta (ýçíèé êîä, ýçíèé íýð) Õóäàëäàí àâàã÷òàé õîëáîîòîé ºãºãäºë /TCustomerData (õóäàëäàí àâàã÷èéí íýð, õàÿã, óòàñ )- Áîðëóóëàëòòàé õîëáîîòîé ºãºãäºë - TGoodsMaster (áîðëóóëñàí îãíîî, õóäàëäàí àâàã÷, á¿òýýãäýõ¿¿í, õýìæýý)2. Access ïðîãðàìûã à÷ààëëà. SellManagement.mdb ãýñýí íýðòýé ôàéëûã øèíýýð ¿¿ñãýõ áºãººä äàðààõ äàðààëëûã ã¿éöýòãýíý. - New File òóñëàõ öîíõíîîñ Great New file/Blank Database ñîíãî. - File New DataBase õàðèëöàõ öîíõ ãàð÷ èðýõ áºãººä My document õàâòàñä New folder êîìàíäûí õýðýãë¿¿ðèéã àøèãëàí “Gazar” ãýñýí õàâòàñ øèíýýð ¿¿ñãý. - óã ¿¿ñãýñýí õàâòàñíû File name òàëáàðò SellManagement ãýæ îðóóëààä Great òîâ÷ëóóðûã ñîíãî.3. ¯ð ä¿íä íü SellManagement ãýñýí ôàéë ¿¿ñýæ ºãºãäëèéí áààçûí óäèðäàõ öîíõ ãàð÷ èðíý. Ãàð÷ãèéí ìºðºíä ôàéëûí íýð ãàð÷ èðæ áàéãàà ýñýõèéã øàëãàí õàðààðàé.Õ¿ñíýãòèéã ¿¿ñãýõ Access ïðîãðàìûí õ¿ñíýãòèéí òóõàé îéëãîëò, òàëáàðûíòîõèðãîî, ò¿ëõ¿¿ðèéí òîõèðãîî, ºãºãäëèéã îðóóëàõ çýðãèéãòàéëáàðëàÿ.Õ¿ñíýãò:Õ¿ñíýãò íü òîäîðõîé ñýäýâò õàìààðàõ ºãºãäëèéã õàäãàëàõçîðèóëàëòòàé îáúåêò áºãººä Access ïðîãðàìä ¿¿ñãýõ ºãºãäëèéíáààçûí ºãºãäºë íü á¿ãä õ¿ñíýãòýä õàäãàëàãäàíà. Òîäîðõîé ñýäýâá¿ðò òóñ òóñûí õ¿ñíýãòèéã ¿¿ñãýýä, ºãºãäëèéã àíãèëààäõàäãàëñíààð ºãºãäëèéí áààçûã ¿ð àøèãòàéãààð ¿¿ñãýæ ÷àäíà.Òàëáàð:Íýãýí òºðëèéã ºãºãäëèéã õàäãàëäàã áàãàíà.Ò¿ëõ¿¿ð:Áè÷ëýã á¿ðèéã áèå äààñàí ç¿éë ãýæ ÿëãàõ çîðèóëàëòòàé òàëáàðþì. Ò¿ëõ¿¿ðèéã òîõèðóóëñíààð áè÷ëýãèéã ø¿¿í ãàðãàæ, õàéëòûãõóðäàí ã¿éöýòãýæ áîëíî.Æèøýý íü: Èæèë îâîãòîé, Èæèë íýðòýé ãèø¿¿í áàéñàí òîõèîëäîëä Ãèø¿¿íèé No 1 Íýð Õýñýã 1001 Äîðæ Áîëîâñîí õ¿÷èí 2010 Äîðæ Ìàðêåòèíã
  • 2. Íýð Õ ýñýã Äîðæ Áîëîâñîí õ¿÷èí Äîðæ Ìàðêåòèíã … … Ãèø¿¿íèé No- îîð ÿëãàæ, õóðäàí õàéíà.Ǻâõºí íýðýýð ÿëãàõàäõýö¿¿ áºãººä õàéõàäõóãàöàà øààðäàíà. Õ ¿ñíýãòèéí õàðàãäàõ áàéäàë: Àññåss ïðîãðàìä îáúåêòèéí 2 ¿íäñýí áà 2 íýìýëò õàðàãäàõ ãîðèìóóä áàéäàã. ¯¿íä: - Data sheet view (ªãºãäëèéí õóóäàñíû õàðàãäàõ ãîðèì) - íü õ¿ñíýãòèéí ºãºãäëèéã îðóóëàõ, õàðóóëàõ çîðèóëàëòòàé äýëãýöèéí ãîðèì þì. - Design view (Áàéãóóëàëòûí õàðàãäàõ ãîðèì) – õ¿ñíýãòèéí áàãàíû íýð, òºðºë ãýõ ìýò á¿òýö áà òýäãýýðèéí øèíæ ÷àíàðûã òîäîðõîéëäîã. - PivotTable view (ªãºãäëèéã íýãòãýæ, ä¿ãíýëò õèéõ ãîðèì) – çºâõºí òàëáàðûí íýðèéã ñîíãîîä, ºãºãäëèéí òàë òàëààñ íü íýãòãýæ áîëíî. - PivotChart view (ªãºãäëèéí õóóäàñíû ºãºãäëèéã ãðàôèêààð õàðóóëàõ ãîðèì) – Ǻâõºí òàëáàðûí íýðèéã ñîíãîîä, ºãºãäëèéã äýëãýöýíä õàðàãäàõààð ãàðãàæ áîëíî. Á¿òýýãäýõ¿¿íèé ìàñòåð ¿¿ñãýõ (TGoodsMaster) õ¿ñíýãò ¿¿ñãýõ 1. TGoodsMaster (GoodsCD, GoodsName, Price) ãýñýí á¿òýöòýé õ¿ñíýãò ¿¿ñãýíý. 2. SellManagement ãýñýí ºãºãäëèéí áààçûã óäèðäàõ öîíõíîîñ Tables îáúåêòèéã ñîíãîîä õýðýãë¿¿ðèéã ñîíãî. 3. New Table õàðèëöàõ öîíõ íýýãäýõ áºãººä æàãñààëòààñ Design View-ã ñîíãîîä Ok 2
  • 3. Õ ¿ñíýãò øèíýýð ¿¿ñãýõ áóñàä àðãóóä:  Inse rt öýñíèé Tab le êîìàíäààð  New O b j ct: Tab le êîìàíäûí õýðýãë¿¿ðýýð eÕ ¿ñíýãòèéí áàéãóóëàëòûí3ãîðèì ãàð÷ èðíý. 4 2D esign View- áàéãóóëàëòûí äýëãýöèéí ãîðèì ò¿¿íèé á¿òýö 1 5 61. Title bar – ¿¿ñãýñýí îáúåêòèéí íýð áà îáúåêòèéí àíãèëàë áàéðëàíà.2. Field Name – òàëáàðûí íýðèéã îðóóëæ ºãíº.3. Data types – òàëáàðò õàäãàëàãäàõ ºãºãäëèéí òºðëèéã çààæ ºãºõ áºãººä Access ïðîãðàìä ºãºãäëèéí 8 òºðºë áàéíà. 3
  • 4. ªãºãä- Õýðýãëýõëèéí Òàéëáàð Çîðèóëàëò äèñêèéí Æèøýýòºðºë õýìæýý Áàãàâòàð ¿ñýã, òîî, òóñãàé 255 b ótå-ýýñÒåxt õýìæýýíèé òýìäýãòýýñ òîãòîõ õýòðýõã¿é УБ, БЗД, 1 5-р òåêñò òºðºë ìºðèéã çààõ óðòòàé хороолол, 4-р хороо, 1 - 2 5-1 Èõ ¿ñýã òîî, òóñãàé Èõ õýìæýýíèé Mem o 64000-ààñ õýìæýýíèé òýìäýãòýýñ òîãòîõ õýòðýõã¿é òåêñò òåêñò òºðºë òýìäýãò ìºðèéã çààõ óðòòàé Òîîí òºðºë Òîîí óòãà çààíà Num ber 1 2byte 3581 , 22.05 Îãíîî òºðºë Îãíîî, öàã õóãàöààíû Yes / num ber to- Curre ncy Tim eD ate / 8 byte 1 0/ / 25 2003, 25- òºðëèéí ºãºãäëèéã çààõ O ct-03 ̺íãºí òºðºë ̺íãºí òºðëèéí ºãºãäëèéã 8 byte $3.1 54.235 çààõ Äóãààðëàë Íýãýýð íýìýãäñýí, 4 byte 1 ,2,3,.. ò òºðºë äàðààëñàí òîîí Au äóãààðëàëò ¿¿ñãýõ “¿íýí ” áà “õóäàë ” ãýñýí yes ýñâýë no, true No Boole an 1 bit òºðºë õî¸ð óòãûã èëýðõèéëñýí ýñâýë false , áóëèéí òºðëèéí on ýñâýë o ff ºãºãäëèéã çààõ Ãàäààä Windows- îð÷èí èéí O LE ob j ct 1 GB îáúåêò ïðîãðàì÷ëàãäñàí òåêñò, e òºðºë õ¿ñíýãò, ä¿ðñ, äóó àâèà çýðýã ãàäààä îáúåêòèéã çààõ Ãèïåðõîëáîë Âåá õóóäàñ, èìåéëèéí H ype rlink 64.000 Mail m e rge.doc ò õàÿã, ôàéë ðóó õîëáîõîä õ¿ðòýëõ òºðºë àøèãëàíà. òýìäýãò 4
  • 5. ªºð óòãàò ªºð õ¿ñíýãòýä Lookup Wizard õàíäàõ õàäãàëàãäàæ áàéãàà òºðºë óòãà ðóó õàíäàõ òîõèîëäîëä àøèãëàäàã.Æè÷: • òîîãîîð èëýðõèéëýãäñýí áîëîâ÷ òýäãýýð äýýð àðèôìåòèê ¿éëäýë õýçýý ÷ õèéãäýõã¿é ìýäýýëëèéí òºðëèéã ºãºãäëèéí òåêñò òºð뺺ð çààõ íü ç¿éòýé. ”÷èð íü èéì òºðëèéí ºãºãäëèéã äýä ìºðººð ñàëãàæ õýðýãëýõ íü øààðäëàãà èõ ãàðäàã áºãººä äýä ìºð ñàëãàõ ¿éëäë¿¿ä òýìäýã ìºð (òýìäýãò òºðºë) äýýð õèéãääýã. Æèøýýëáýë: ÿìàð íýã êîä, óòàñíû äóãààð.4. Description – áóñàä çàãâàð÷ëàã÷èä áîëîí õýðýãëýã÷äýä çîðèóëæ ºãºãäëèéí äýëãýðýíã¿é òàéëáàðûã îðóóëíà.5. Field selector – òàëáàðûã ñîíãîõ ¿åä óã ìºð¿¿äèéã ñîíãîíî. Field properties - òàëáàðò ºãºãäºë îðóóëàõ òýìäýãòèéí äýýä õýìæýý, òàëáàðûí ôîðìàò ãýõ ìýò øèíæ ÷àíàðûã òîõèðóóëäàã áºãººä ºãºãäëèéí ñàíä ºãºãäºë îðóóëàõ, çàñâàðëàõ ¿åä ãàðààñ îðóóëæ áîëîõ áóðóó óòãûã õÿíàõ, ìàÿãò áà òàéëàíä ºãºãäºë ÿìàð õýëáýðòýé ãàðàõûã çààõ ¿¿äíýýñ òîäîðõîéëæ ºãäºã. Íýìýëò òîäîðõîéëîëòûã òàëáàð òóñ á¿ðò çààæ ºãäºã.Íýìýëò òîäîðõîéëîëòÍýìýëò Òàéëáàð ÇîðèóëàëòòîäîðõîéëîëòField size Òàëáàðûí õýìæýý Òàëáàðûí õýìæýýFormat Ãàðãàõ õýëáýð Òîî, îãíîî, ìºíãºí òºðëèéí ºãºãäëèéí õàðàãäàõ õýëáýðèéã çààíà.Decimal Áóòàðõàé îðîí Òîî áà ìºíãºí òºðëèéíPlaces ºãºãäëèéí áóòàðõàéí îðíû óðòûã çààíà.Input Mask Çàãâàð îðóóëàëò Òàëáàðò îðîõ óòãûí òºðëèéã òýìäýãò òóñ á¿ðýýð íàðèéâ÷èëæ çààíà.Caption Òîëãîé/ãàð÷èã Òàëáàðûí òàéëàí áà ìàÿãòàíä ÿìàð òîëãîéòîé ãàðãàõûã çààíà.Default Àíõäàã÷ óòãà Òàëáàðò àâòîìàòààð ºãºõvalue àíõäàã÷ óòãûã çààíà.Validation ”òãûí õÿçãààð Òàëáàðò àâàõ óòãûíRule õÿçãààðûã çààíà.Validation Ìýäýýëýõ áè÷âýð Òàëáàðò àâàõ óòãûítext õÿçãààðààñ õàëüñàí óòãà îðóóëàõ îðîëäëîãî õèéõ ¿åä ÿìàð ìýäýýë ãàð÷ áàéõûã çààíà.Required Øààðäàõ “Yes” ýñâýë “no” ñîíãîëòòîé áºãººä “Yes” ñîíãîãäñîí áàéõàä òàëáàðò 5
  • 6. çààâàë óòãà îðóóëàõûã øààðäàõ áóþó “no ” áàéõ ¿åä óòãûã îðóóëàõã¿é àëãàñ÷ áîëíî.Allo w Ze ro Òýã óòãûã çºâøººðºõ “Ye s ” ýñâýë “no ” ñîíãîëòòîé áºãººä “Ye s ” ñîíãîãäñîí ¿åä òåêñò áóþó ìåìî òàëáàðò òýã ìºð óòãà ºã÷ áîëíî.Indexed Ýðýìáýëýëò Èäýâõòýé òàëáàðààð ýðýìáýëíý.TGoodsMaste r-ò øààðäëàãàòàé òàëáàðûã òîõèðóóëàõûí òóëäòàëáàðûí íýð, ºãºãäëèéí òºðºë ò¿¿íýýñ õàìààðààä òàëáàðûí õýìæýýãçààíà.Á¿òýýãäýõ¿¿íèé êîä - òàëáàðûí òîõèðóóëãûã õèéå.Òàëáàðûí íýð :GoodsCDªãºãäëèéí òºðºë :TextÒàëáàðûí õýìæýý :4Õ¿ñíýãòèéí áàéãóóëàëòûí ãîðèìä:1 . Fie l Nam e òàëáàðûí 1 - d ð ìºðèéí ýõýíä êóðñîðûã áàéðëóóëààä òàëáàðûí íýðèéã îðóóëààä Ente r.2. D ata type áàãàíàä êóðñîðûã áàéðëóóëàí ºãºãäëèéí òºðëèéã ìºðèéí ýöýñò õóëãàíûã áàéðëóóëàõàä ãàð÷ èðýõ òºð뺺ñ ñîíãîíî.. GoodsCD òàëáàð íü òîîöîîëëûí îáúåêò áîëîõã¿é ó÷ðààñ Text òºðëèéã ñîíãîæ áàéíà.3. Òàëáàðûí ºãºãäºë àâàõ õýìæýýã Fie l P rope rties d á¿ëãèéí Fie l size – èéí õàðãàëçñàí d í¿äýíä “4” ãýæ îðóóëíà. - ªãºãäëèéí òºðºë òàëáàðò õàäãàëàãäàõ ºãºãäëèéí òºðëèéã çààæ ºãíº. ªãºãäºëä íèéö¿¿ëýí çîõèõ òºðëèéã íü çààæ ºãâºë, ºãºãäëèéã çºâ îðóóëàõààñ ãàäíà õàéõ õóðäûã íýìýãä¿¿ëíý.Á¿òýýãäýõ¿¿íèé íýð- òàëáàðûí òîõèðóóëãàÒàëáàðûí íýð :GoodsNameªãºãäëèéí òºðºë :TextÒàëáàðûí õýìæýý : 304. Õ¿ñíýãòèéí áàéãóóëàëòûí ãîðèìä: äýýðõ òàëáàðûí òîõèðóóëãûí àäèë ã¿éöýòãýíý.¯íý - òàëáàðûí òîõèðóóëãà 6
  • 7. Òàëáàðûí íýð :P riceªãºãäëèéí òºðºë :C urre ncy5. Õ¿ñíýãòèéí áàéãóóëàëòûí ãîðèìä: äýýðõ òàëáàðûí òîõèðóóëãûí àäèë ã¿éöýòãýíý ôîðìàòûã. #,##0.00₮;-#,##0.00₮ òîõèðóóëíà.Æè÷: Òàëáàðûí õýìæýýíèé àíõíû óòãûã ººð÷ëºõ人: Tools öýñíèé Options êîìàíäóóð íýýãäýõ Tables/Queries õóóäàñíû Default field sizes òåêñòýí òàëáàðò çàñâàðëàíà.Îáúåêòèéí ò¿ëõ¿¿ðèéí òîõèðóóëãàÄýýðõ õ¿ñíýãòíèé GoodCD òàëáàðò ò¿ëõ¿¿ðèéã òîõèðóóëúÿ.6. GoodCD òàëáàðûí Field Selector-ûã ñîíãîíî. Õóëãàíû çààã÷ õýëáýðòýé áîëíî.7. Edit öýñíèé Primary Key êîìàíä ýñâýë õýðýãë¿¿ðèéã ñîíãîíî. êîìàíäûí8. Öîíõíû äóðûí áàéðëàëä õóëãàíààð íýã òîâøèëò õèéíý. GoodCD òàëáàðûí Field Selector-ò ä¿ðñ áèé áîëæ àíõäàã÷ ò¿ëõ¿¿ð àòðèáóò áîëñíûã õàðóóëíà.Õ¿ñíýãòèéã õàäãàëàõ9. ¯¿ñãýñýí õ¿ñíýãòèéã TGoodsMaster íýðëýæ õàäãàëúÿ. File öýñíèé Save as êîìàíäààð íýýãäýõ õàðèëöàõ öîíõîíä äàðààõ ñîíãîëòóóä õèéíý.Save Table ‘table 1’ To -äõ¿ñíýãòèéí íýðèéã ºãíº.As – õàäãàëàõ îáúåêòèéíòºðëèéã ñîíãîíî.1 0.Taskbar – ò õ¿ñíýãòèéí íýð ãàð÷ èðñýí ýñýõèéã áàòëàí õàð.Æè÷: Áàéãóóëàëòûí ãîðèìä ò¿ëõ¿¿ðèéã òîõèðóóëààã¿é õàäãàëàõòîõèîëäîëä äàðààõ ìýäýýëëèéí öîíõ ãàð÷ èðíý. 7
  • 8. Yes- êîäûí òàëáàð íü àâòîìàòààð ¿¿ñýýä ò¿ëõ¿¿ð áîëæòîõèðóóëàãäàíà.No – ò¿ëõ¿¿ð òîõèðóóëàãäààã¿é õàäãàëàãäàíà.Cancel – õàäãàëàõûã õ¿÷èíã¿é áîëãîíî.Äýëãýöèéí ãîðèìèéã ñîëèõÁàéãóóëàëòûí äýëãýöèéí ãîðèì (Design view)-ä õ¿ñíýãòèéí òàëáàðûãòîõèðóóë÷èõâàë, ªãºãäëèéí õóóäàñíû õàðàãäàõ ãîðèì (Data sheetview) ð¿¿ øèëæèí ºãºãäëèéã îðóóëíà. ¯¿íèéã ã¿éöýòãýõèéí òóëä:11. View öýñíèé Data sheet view /Design view ýñâýë êîìàíäûí õýðýãë¿¿ðýýñ Design view / Data sheet view -èéã ñîíãîõ áà ýäãýýð íü õîîðîíäîî ñîëèãääîã òîâ÷ëóóðóóä þì.Data sheet view – èéí äýëãýöèéí á¿òýöªãºãäëèéí õóóäàñ õàðóóëàõ äýëãýöèéí ãîðèì íü äàðààõ áàéäëààðõàðàãäàíà. 2 1 4 5 312 Field- òàëáàð Field selector- òàëáàð ñîíãîã÷ 63 Record- áè÷ëýã4 Record selector –áè÷ëýã ñîíãîã÷5 Cell –í¿ä6 Record control bar áè÷ëýã øèëæ¿¿ëýõ ìºð Ýõíèé áè÷ëýãòò øèëæèõ 8
  • 9. ªìíºõ áè÷ëýãò øèëæèõ Äýëãýöýíä ñîíãîãäñîí áàéãàà áè÷ëýãèéí äóãààð Äàðààãèéí áè÷ëýã ð¿¿ øèëæèõ Õ àìãèéí ñ¿¿ë÷èéí áè÷ëýãò øèëæèõ Ñ ¿¿ë÷èéí áè÷ëýãèéí àðä øèíý áè÷ëýã îðóóëàõGoodsMaster õ¿ñíýãòýä ºãºãäëèéã îðóóëúÿ.13. MS-Excel ïðîãðàìä ºãºãäºë îðóóëàõûí àäèëààð ¿éëäëèéãã¿éöýòãýíý.Price òàëáàðûí ºãºãäºë îðóóëàõäàà ¿íäñýí òîî óòãûã ë îðóóëæºãºõºä àâòîìàòààð “ ¥ ” õýëáýðò øèëæèíý.ªãºãäëèéã îðóóëñàí òîõèîëäîëä Àññåss àâòîìàòààð õàäãàëñàíáàéäàã.Àíõààðóóëãà: •Ò¿ëõ¿¿ð àòðèáóò íü äàâõàðäñàí óòãà àâàõã¿é. •Òýã óòãà (Null) –ûã îðóóëæ áîëîõã¿é.Õ¿ñíýãòèéã íýýõ, õààõ14. TGoodsMaster õ¿ñíýãòèéã õààõäàà File öýñíèé Close êîìàíäýñâýë òîâ÷ëóóðûã ñîíãîíî.15. ªãºãäëèéí ñàí óäèðäàõ öîíõíû Table îáúåêòèéí æàãñààëòàäTGoodsMaster õ¿ñíýãòèéã ãàð÷ èðñýí ýñýõèéã áàòëàí õàð. 9
  • 10. Õ¿ñíýãòèéã íýýõ16. TGoodsMaster õ¿ñíýãòèéã íýýõäýý óã õ¿ñíýãòèéãèäýâõæ¿¿ëýýä ýñâýë õîñ äàðàëò õèéíý.17. Õ¿ñíýãò ºãºãäëèéí õóóäàñíû õàðàãäàõ ãîðèìä íýýãäýõ áºãººääàðààãèéí ¿éëäýëä çîðèóëàí õ¿ñíýãòýý õààÿ.Õóäàëäàí àâàã÷èéí ìàñòåð ¿¿ñãýõ(CustomerMaster) õ¿ñíýãò ¿¿ñãýõªãºãäëèéí ¿ð àøèãòàéãààð àøèãëàæ áîëîõîîð õ¿ñíýãò áà òàëáàðûíá¿òöèéã ñóäëàõ øààðäëàãàòàé áàéäàã.Õ¿ñíýãòèéã ñóäëàõ: CustomerMaster-èéí BossName øèã àäèë ºãºãäëèéãäàâòàí îðóóëàõ òîõèîëäîëä, òýð òàëáàðûã ººð õ¿ñíýãòýä õóâààâàëñàéí áàéäàã. Ýíý íü ºãºãäëèéã îðóóëàõûã õÿëáàð÷èëæ, äèñêèéíõýìæýýã õýìíýæ ÷àäíà. Ò¿¿í÷ëýí ýçýíä ººð÷ëºëò îðñîí òîõèîëäîëä ÷,çºâõºí BossMaster-èéí ýçíèé íýðèéã ººð÷ëºõºä õóäàëäàí àâàã÷èéíýçíèé íýð íü äàãàí ººð÷ëºãäºíº. • CustomerMaster• TCustomerMaster 10
  • 11. • TBossMaste rÒàëáàðûã ñóäëàõ: CustomerMaster áàTBossMaster õ¿ñíýãòýä øààðäëàãàòàé òàëáàðûã òîõèðóóëíà.•TBossMaster õ¿ñíýãòýä ÂîssName òàëáàðûã òîõèðóóëíà.ªãºãäëèéã õàéõûã ¿ð àøèãòàéãààð ã¿éöýòãýõèéí òóëä ò¿ëõ¿¿ðáîëãîæ BossCD òàëáàðûã òîõèðóóëíà.•CustomerMaster õ¿ñíýãòýä BossCD òàëáàðûã îðóóëíà.CustomerMaster TBossMaster õ¿ñíýãòèéã õîëáîñíîîð ÂîssNameòàëáàðûã àâòîìàòààð îðóóëíà.Æè÷: Õ¿ñíýãò õîëáîõ òóõàé Query ¿¿ñãýõýä ñóäëàõ áîëíî.BossMaster ¿¿ñãýõBossMaster (BossCD, BossName) ãýñýí á¿òýöòýé õ¿ñíýãò ¿¿ñãýíý. ªìíº¿¿ñãýñýí TGoodsMaster õ¿ñíýãò ¿¿ñãýñýí àäèëààð ¿¿ñãýíý.1. SellManagement ãýñýí ºãºãäëèéí áààçûã óäèðäàõ öîíõíîîñ Tablesîáúåêòèéã ñîíãîîä õýðýãë¿¿ðèéã ñîíãî.2. New Table õàðèëöàõ öîíõíýýãäýõ áºãººä æàãñààëòààñDesign View-ã ñîíãîîä OkÕ¿ñíýãò øèíýýð ¿¿ñãýõäýý Insertöýñíèé Table êîìàíä ýñâýë NewObject: Table êîìàíäûí õýðýãë¿¿ðèéã àøèãëàíà.BossMaster õ¿ñíýãòèéã ¿¿ñãýõäýý òàëáàð á¿ðèéã äàðààõáàéäëààð òîõèðóóëíà. 11
  • 12. Õ ¿ñíýãòèéí áàéãóóëàëòûí ãîðèì ãàð÷ èðíý. Äàðààõ áàéäëààðòîõèðóóëàõ áà àíõäàã÷ ò¿ëõ¿¿ðèéã BossCD òàëáàðààð àâíà. 3.¯¿ñãýñýí õ¿ñíýãòèéã TbossMasterãýæ íýðëýí õàäãàëúÿ. File öýñíèé Save asêîìàíäààð íýýãäýõ õàðèëöàõ öîíõîíä äàðààõñîíãîëòóóä õèéíý.Save Table ‘table 1’ To -ä õ¿ñíýãòèéí íýðèéãºãíº.As – õàäãàëàõ îáúåêòèéí òºðëèéã ñîíãîíî.4. Áàéãóóëàëòûí äýëãýöèéí ãîðèì (Designview)-ä øèëæèíý. ¯¿íèéã ã¿éöýòãýõèéí òóëä: View öýñíèé Data sheet view ýñâýë êîìàíäûí õýðýãë¿¿ðýýñ Design view ñîíãîíî.5. Õ¿ñíýãòýä ºãºãäëèéã îðóóëàõäààºìíº TGoodsMaster õ¿ñíýãò-èéíèæèëýýð ºãºãäëèéã îðóóëíà.Äàðààãèéí ¿éëäýëä çîðèóëààäõ¿ñíýãòèéã õààíà.CustomerMaster ¿¿ñãýõÒCustomer Master (CustomerCD, CustomerName, PostNumber, Address1,Address2, TEL, BossCD, DM) ãýñýí á¿òýöòýé õ¿ñíýãò ¿¿ñãýíý.CustomerCD – Õóäàëäàí àâàã÷èéí êîäCustomerName – Õóäàëäàí àâàã÷èéí íýðPostNumber – øóóäàíãèéí äóãààðAddress1- õàÿã 1 Àéìàã, õîòîîñ ãóäàìæ õ¿ðòýëAddress2 – õàÿã 2 Áàéøèíãèéí íýð, äàâõàð, õààëãàTEL – õîëáîãäîõ óòàñíû äóãààðBossCD –ýçíèé êîäDM – DM õ¿÷èíòýé, õ¿÷èíã¿é ãýñýí óòãûã àãóóëñàí òàëáàð áàéíà.Õóäàëäàí àâàã÷èéí õ¿ñíýãò ¿¿ññýí áàéäëûã ¿ç¿¿ëáýë: 12
  • 13. Ýíýõ¿¿ õ¿ñíýãòèéã ¿¿ñãýõäýý ºìíºõ àðãóóäûã õýðýãëýõ áºãººäõ¿ñíýãòýä ºãºãäºë îðóóëàõäàà èìïîðòûí àðãûã àøèãëàõ áîëíî.Õ¿ñíýãò ¿¿ñãýõ1. SellManagement ãýñýí ºãºãäëèéí áààçûã óäèðäàõ öîíõíîîñ Tablesîáúåêòèéã ñîíãîîä õýðýãë¿¿ðèéã ñîíãî.2. New Table õàðèëöàõ öîíõíýýãäýõ áºãººä æàãñààëòààñDesign View-ã ñîíãîîä Ok3. Õ¿ñíýãò øèíýýð ¿¿ñãýõäýý Insertöýñíèé Table êîìàíä ýñâýë NewObject: Table êîìàíäûíõýðýãë¿¿ðèéã àøèãëàíà.BossMaster õ¿ñíýãòèéã ¿¿ñãýõäýý òàëáàð á¿ðèéã äàðààõáàéäëààð òîõèðóóëíà.Õ¿ñíýãòèéí áàéãóóëàëòûí ãîðèì ãàð÷ èðíý. Äàðààõ áàéäëààðòîõèðóóëàõ áà àíõäàã÷ ò¿ëõ¿¿ðèéã BossCD òàëáàðààð àâíà. 13
  • 14. Äýýðõèéí àäèëààð øèíæ ÷àíàðûí òàëáàðò òàëáàð õàðãàëçóóëàíºãºãäëèéí òºðºë áîëîí õýìæýýã òîõèðóóëæ ºãíº.4. ¯¿ñãýñýí õ¿ñíýãòèéã TCustomerMaster ãýæ õàäãàëúÿ. Fileöýñíèé Save as êîìàíäààðíýýãäýõ õàðèëöàõ öîíõîíääàðààõ ñîíãîëòóóä õèéíý.Save Table ‘table 1’ To -äõ¿ñíýãòèéí íýðèéã ºãíº.As – õàäãàëàõ îáúåêòèéíòºðëèéã ñîíãîíî.5. ªãºãäëèéí õóóäàñíûõàðàãäàõ ãîðèì (Data sheetview) ð¿¿ øèëæèí äàðààõ ºãºãäëèéã îðóóëíà. ¯¿íèéã ã¿éöýòãýõèéíòóëä: View öýñíèé Data sheet view ýñâýë êîìàíäûí õýðýãë¿¿ðýýñ Data sheet view ñîíãîíî.Äàðààãèéí ¿éëäýëä çîðèóëààä õ¿ñíýãòèéã õààíà.ªãºãäëèéã èìïîðòëîõExcel-èéí ôàéë áîëîí ãàäààä ºãºãäëèéã Access ïðîãðàìä óíøèí ìýäýð÷îðóóëàõûã èìïîðòëîõ ãýäýã. Ãàäààä ºãºãäëèéã èìïîðò õèéâýëAccess- èéí õ¿ñíýãòýä ºãºãäºë íü õóóëàãäàõ áºãººä çàñâàð õèéõá¿ðýí áîëîìæòîé. ªãºãäëèéã èìïîðòëîõäîî äàðààõ äàðààëëûãã¿éöýòãýíý.1. TCustomerMaster õ¿ñíýãòýä Excel – èéí CustomerData.xls –ôàéëûã èìïîðòëî¸. 14
  • 15. • CustomerData.xls1. TCustomerMaster õ¿ñíýãò ºãºãäëèéí áààç óäèðäàõ öîíõîíä ãàð÷èðñýí ýñýõèéã áàòëàõ øààðäëàãàòàé2. File öýñíèé Get External Data äýä öýñíèé Import êîìàíäûã ñîíãîíî.3. Íýýãäýõ Import õàðèëöàõ öîíõíû Look in òàëáàðò My Document/Access_2003_Basic õàâòàñò áàéðëàõ CustomerData.xls ôàéëûãñîíãîíî.4. Õýðýâ óã ôàéë öîíõîíä õàðàãäàõã¿é áàéâàë Files of type òàëáàðòMicrosoft Excel ãýæ áè÷èãäñýí õ¿ñíýãòýí ìýäýýëëèéíòºðëèéã ñîíãîíî. Ok5. Import Spreadsheet Wizard õàðèëöàõ öîíõ ãàð÷ èðýõ áºãººäèìïîðòëîõ õýñã¿¿äèéã ñîíãîõ ¿¿ðýãòýé. 15
  • 16. • - àæëûí õóóäñààð íü èìïîðòëîõ, ýíý ñîíãîëòûí ¿åä àæëûí õóóäàñíû æàãñààëò ãàðíà. • - òîäîðõîé ìóæààð èìïîðòëîõ • S am pl d ata fo r workshee t‘S hee t Õ – ñîíãîãäñîí àæëûí õóóäàñíû e 1 ºãºãäºë õàðàãäàõ áîëíî.6. - èéã ñîíãîîä ò¿¿íèé æàãñààëòààñ Sheet1- èéã ñîíãîîä Next òîâ÷ëóóðûã ñîíãîíî.7. Íýýãäýõ õàðèëöàõ öîíõîíä - ýõíèé ìºðèéã òàëáàðûí íýð áîëãîæ àøèãëàõ ýñýõèéã çààãààä Next òîâ÷ëóóðûã ñîíãîíî.8. ªãºãäëèéã õàäãàëàõ áàéðëàëûã çààíà. - øèíý õ¿ñíýãò - æàãñààëòûí öîíõîíä áóé íýýëòòýé õ¿ñíýãòíèéã ñîíãîí ºãºãäëèéã áàéðëóóëäàã. Ýíýõ¿¿ æàãñààëòààñ TCustomerÌàster –èéã ñîíãîîä Next òîâ÷ëóóðûã ñîíãîíî.9. Ýíýõ¿¿ íýýãäñýí öîíõ íü ñîíãîñîí ºãºãäëèéã çºâ õ¿ñíýãò (TCustomerÌàster)-ò èìïîðòëîõ ãýæ áàéãàà ýñýõèéã áàòàëãààæóóëäàã áºãººä Finish òîâ÷ëóóðûã ñîíãîíî.10. Import Spreadsheet Wizard àìæèëòòàé èìïîðò õèéãäñýí òóõàé ìýäýýëëèéí öîíõ ãàðäàã.11. ªãºãäëèéí áààçûã óäèðäàõ öîíõîíä øèëæèæ TCustomerÌàster õ¿ñíýãòýä õîñ äàðàëò õèéí íýýõýä ºãºãäëèéí õóóäàñ õàðóóëàõ ãîðèìä ºãºãäºë õóóëàãäàæ, õ¿ñíýãòýä íýìýãäñýí áàéãàà 16
  • 17. ýñýõèéã áàòëàí õàð.1 2. ªºð÷ëºëòèéã õàäãàëààä äàðààãèéí ¿éëäýëä çîðèóëæ õ¿ñíýãòèéã õààãààä òàâü÷èõúÿ.Æè÷:Áàãàíûí ºðãºíèéã ººð÷ëºõ: Õ¿ñíýãòèéí áàãàíûí ºðãºíèéã Format öýñíèéColumn Width êîìàíäààð, òàëáàð ñîíãîã÷èéí áàðóóí õèëèéã ÷èðýõçàìààð òîõèðóóëæ áîëíî.Áàãàíûu áýõëýõ: Õ¿ñíýãòèéí òàëáàð íü îëîí òîõèîëäîëä àæëûíõóóäñûã áàðóóí òèéø ã¿éëãýí õàðàõàä ç¿¿í òàëûí òàëáàð¿çýãäýõã¿é áîëäîã. ªãºãäëèéã îðóóëàõ, óíøèõ ¿åä áàéíãàõàðàãäàæ áàéõààð òàëáàðûã áýõëýæ áîëíî.¯¿íèé òóëä:Áýõëýõ òàëáàðàà ñîíãîîä Format öýñíèé Lock Column• Èìïîðòëîõ ¿åä àíõààðàõ ç¿éëÄàðààõ òîõèîëäîëä çºâ èìïîðò õèéãäýõã¿é. 1. Òàëáàðûí íð ÿëãààòàé áàéõ òîõèîëäîëä 2. Òîëãîéí áàãàíà, òîëãîéí ìºðºíä ãàð÷èã áîëîí íýð áàéõ òîõèîëäîëä 3. Access- èéí õ¿ñíýãòýä áàéõã¿é òàëáàð íü Excel-èéí õ¿ñíýãòýä áàéõ òîõèîëäîëä 4. Ò¿ëõ¿¿ðèéã òîõèðóóëñàí òàëáàðò õîîñîí í¿ä áàéõ òîõèîëäîëä 5. Òîëãîéí ìºðèéã òàëáàðûí íýð áîëãîæ àøèãëàõ òîõèîëäîëä äàðààõ 1,2,3 ãýñýí äóãààðëàëòûã àæèãëààðàé.Áîðëóóëàëòûí ºãºãäëèéã ¿¿ñãýõÕ¿ñíýãò áà òàëáàðûã ñóäëàõºãºãäëèéã ¿ð àøèãòàéãààð àøèãëàæ ÷àäàõààð, õ¿ñíýãò áàòàëáàðûí á¿òöèéã ñóäàëúÿ.Õ¿ñíýãò ñóäëàõÄàðààõ áàéäëààð SellData õ¿ñíýãò ¿¿ñãýõ òîõèîëäîëäTGoodsMaster, TcustomerMaster, TBossMaster, TsellData ãýñýí 4-í õ¿ñíýãòýýñ ¿¿ñãýíý.• SellData 17
  • 18. • SellData• CustomerMaster• TGoodsMasterÒàëáàðûã ñóäëàõTsellData õ¿ñíýãòýä øààðäëàãàòàé òàëáàðûã òîõèðóóëíà. • BossMaster• SellDataÁîðëóóëàëòûí ºãºãäºëä øààðäëàãàòàé òàëáàð íü äàðààõáàéäàëòàé áàéíà. ýíýõ¿¿ ºí㺺ð òîäðóóëñàí òàëáàðóóäòîõèðóóëàõã¿é ººð òàëáàðààñ àâòîìàòààð àâàõ ýñâýë áàéãààòàëáàðûã ¿íäýñëýýä òîîöîîã õèéíý. TCustomerMaster õ¿ñíýãòýýñ TGoodMaster àâòîìàòààð àâíà. õ¿ñíýãòýýñ àâòîìàòààð àâíà. 18 TBossMaster Price,Amount-ã õ¿ñíýãòýýñ ¿ðæ¿¿ëæ òîîöîî-ëîë àâòîìàòààð õèéíý.
  • 19. Äýýðõ òàëáàðóóä äîòîð àâòîìàòààð õàíäàõ, òîîöîîëîõ òàëáàðóóäûã¿ëäýýíý. Áàñ îðóóëñàí äàðààëëààð äóãààðëàõ çîðèóëàëòòàé Noòàëáàðûã íýìýýä, ýíý òàëáàðûã àíõäàã÷ ò¿ëõ¿¿ðýýð òîäîðõîéëíî. Îäîî¿¿ñãýõ SellData õ¿ñíýãò ìààíü äàðààõ òàëáàðóóäààð ¿¿ñãýãäýíý.Àâòîìàòààð õàíäàõ, òîîöîîëîõ àðãûí òóõàé query ¿¿ñãýõ á¿ëýãòñóäëàíà.ÒSellData (No, SellDate, CustomerCD, GoodsCD, Amount) ãýñýíá¿òýöòýé õ¿ñíýãò ¿¿ñãýíý.No – äàðààëëààð íü äóãààðëàõ òàëáàðSellDate – áàðàà áîðëóóëñàí îãíîîCustomerCD– Õóäàëäàí àâàã÷èéí êîäGoodsCD – áàðààíû êîäAmount – çàðàãäñàí áàðààíû ¿íýÁîðëóóëàëòûí ºãºãäëèéí õ¿ñíýãò ¿¿ññýí õýëáýðèéã ¿ç¿¿ëáýë:Ýíýõ¿¿ õ¿ñíýãòèéã ¿¿ñãýõäýý ºìíºõ àðãóóäûã õýðýãëýõ áºãººäõ¿ñíýãòýä ºãºãäºë îðóóëàõäàà èìïîðòûí àðãûã àøèãëàõ áîëíî.• TSellData õ¿ñíýãòèéã ¿¿ñãýõ1. SellManagement ãýñýí ºãºãäëèéí áààçûã óäèðäàõ öîíõíîîñ Tablesîáúåêòèéã ñîíãîîä õýðýãë¿¿ðèéã ñîíãî.2. New Table õàðèëöàõ öîíõíýýãäýõ áºãººä æàãñààëòààñDesign View-ã ñîíãîîä Ok 19
  • 20. 3. Õ ¿ñíýãò øèíýýð ¿¿ñãýõäýý Inse rt öýñíèé Tab le êîìàíä ýñâýëNew O b j ct: Tab le êîìàíäûí õýðýãë¿¿ðèéã àøèãëàíà. eTSellData õ¿ñíýãòèéã ¿¿ñãýõäýý òàëáàð á¿ðèéã äàðààõáàéäëààð òîõèðóóëíà.õ¿ñíýãòèéí á¿òöèéã ¿¿ñãýõäýý ºìíºõ õ¿ñíýãò¿¿äèéí àäèëäàðààëëûã ã¿éöýòãýõ áºãººä òàëáàð á¿ðèéã äàðààõ áàéäëààðòîõèðóóëíà.Autonumber òºðºë: Òàëáàðûí ºãºãäëèéí òºðëèéã Autonumberòîõèðóóëñàí ¿åä 1,2,3,.. ãýõ ìýò äàðààëñàí òîîíóóä àâòîìàòààðîíîîãäîîä áè÷ëýã á¿ðò ººð ººð óòãà ¿¿ñíý.Õ¿ñíýãòèéí áàéãóóëàëòûí ãîðèì ãàð÷ èðíý. Äàðààõ áàéäëààðòîõèðóóëàõ áà àíõäàã÷ ò¿ëõ¿¿ðèéã No òàëáàðààð àâíà.Äýýðõèéí àäèëààð øèíæ ÷àíàðûí òàëáàðò òàëáàð õàðãàëçóóëàíºãºãäëèéí òºðºë áîëîí õýìæýýã òîõèðóóëæ ºãíº.4. ¯¿ñãýñýí õ¿ñíýãòèéã SellData ãýæ õàäãàëúÿ. File öýñíèé Saveas êîìàíäààð íýýãäýõ õàðèëöàõ öîíõîíä äàðààõ ñîíãîëòóóä õèéíý.Save Table ‘table 1’ To -äõ¿ñíýãòèéí íýðèéã ºãíº.As – õàäãàëàõ îáúåêòèéíòºðëèéã ñîíãîíî.5. Äàðààãèéí ¿éëäýëä áýëòãýíõ¿ñíýãòýý õààíà.Áîðëóóëàëò ºãºãäëèéí õ¿ñíýãòýäºãºãäëèéã èìïîðòëîõªãºãäëèéã èìïîðòëîõäîî TCustomerMaster õ¿ñíýãòýä ºãºãäºëèìïîðòëîõòîé àäèëààð äàðààõ äàðààëëûã ã¿éöýòãýíý.1. TSell Data õ¿ñíýãòýä Excel – èéí SellData.xls – ôàéëûã èìïîðòëî¸.1. T SellData õ¿ñíýãò ºãºãäëèéí áààç óäèðäàõ öîíõîíä ãàð÷ èðñýíýñýõèéã áàòëàõ øààðäëàãàòàé 20
  • 21. 2. File öýñíèé Get External Data äýä öýñíèé Import êîìàíäûã ñîíãîíî.3. Íýýãäýõ Import õàðèëöàõ öîíõíû Look in òàëáàðò My Document/Access_2003_Basic õàâòàñò áàéðëàõ • SellData.xls ôàéëûã ñîíãîíî.4. Õýðýâ óã ôàéë öîíõîíä õàðàãäàõã¿é áàéâàë Files of type òàëáàðòMicrosoft Excel ãýæ áè÷èãäñýí õ¿ñíýãòýí ìýäýýëëèéíòºðëèéã ñîíãîíî. Ok5. Import Spreadsheet Wizard õàðèëöàõ öîíõ ãàð÷ èðýõ áºãººääàðààõ ñîíãîëòóóäûã õèéíý. • àæëûí õóóäñààð èìïîðòëîõ ó÷ðààñ ñîíãîëòûí òîâ÷èéã èäýâõæ¿¿ëýýä æàãñààëòûí öîíõíîîñ Sheet1-èéã èäýâõæ¿¿ëíý. • Sample data for worksheet ‘Sheet1Õ– òàëáàðò ñîíãîãäñîí àæëûí õóóäàñíû ºãºãäºë õàðàãäàõ áîëíî. Next òîâ÷ëóóðûã ñîíãîíî. 21
  • 22. 1 3. Íýýãäýõ õàðèëöàõ öîíõîíä - ýõíèé ìºðèéã òàëáàðûí íýð áîëãîæ àøèãëàõ ýñýõèéã çààãààä Next òîâ÷ëóóðûã ñîíãîíî.14. ªãºãäëèéã õàäãàëàõ áàéðëàëûã çààõäàà - æàãñààëòûí öîíõîíä áóé íýýëòòýé õ¿ñíýãòèéí æàãñààëòààñ TSellData –èéã ñîíãîîä Next òîâ÷ëóóðûã ñîíãîíî.15. Äàðààãèéí íýýãäñýí öîíõ íü TSellData)-ò èìïîðòëîõ ãýæ áàéãàà ýñýõèéã áàòàëãààæóóëäàã áºãººä Finish òîâ÷ëóóðûã ñîíãîíî.16. Import Spreadsheet Wizard-èéí àìæèëòòàé èìïîðò õèéãäñýí òóõàé ìýäýýëëèéí öîíõ ãàðäàã. 22
  • 23. 17. ªãºãäëèéí áààçûã óäèðäàõ öîíõîíä øèëæèæ TSellData õ¿ñíýãòýä õîñ äàðàëò õèéí íýýõýä ºãºãäëèéí õóóäàñ õàðóóëàõ ãîðèìä ºãºãäºë õóóëàãäàæ, õ¿ñíýãòýä íýìýãäñýí áàéãàà ýñýõèéã áàòëàí õàð.18. ªºð÷ëºëòèéã õàäãàëààä äàðààãèéí ¿éëäýëä çîðèóëæ õ¿ñíýãòèéã õààãààä òàâü÷èõúÿ.Æè÷: • Áîäèò áàéäàëä áîðëóóëàëòûí ºãºãäëèéã ôîðì äýýð îðóóëäàã ÷ query áîëîí òàéëàíä îëîí òîîíû ºãºãäºë õýðýãòýé áîëîõ ó÷èð ýõëýýä ºãºãäëèéã îðóóëñàíûã àíõààðàõ õýðýãòýé. • Îáúåêò õîîðîíäûí óðñãàë òóõàéÕ¿ñíýãòýä õàäãàëàãäñàí ºãºãäëèéã äàðààõ áàéäëààð îáúåêòá¿ðèéí äóíä àøèãëàäàã. Query ºãºãäëèéã õàðóóëàõ ºãºãäëèéã îðóóëàõ, çàñâàð õèéõ Õ¿ñíýãò ºãºãäëèéã ºãºãäëèéã õàðóóëàõÕ îëáîîñ ¿¿ñãýõ òóõàé ºãºãäëèéã õýâëýõ îðóóëàõ, çàñâàð õèéõ 23 Òàéëàí Òàéëàí
  • 24. Access ïðîãðàìä îëîí õýñýãò õóâààãäñàí õ¿ñíýãò¿¿äèéã äóíäûííèéòëýã òàëáàðààð õîëáîõûã relationship ãýäýã. Õ¿ñíýãò¿¿äýäõîëáîîñ àøèãëàñíààð ÿã íýã õ¿ñíýãò áàéãàà þì øèã òýäãýýðèéíºãºãäºëòýé íü àæèëëàæ áîëäîã þì.Àíõäàã÷ áà ãàäààä ò¿ëõ¿¿ð2 õ¿ñíýãòèéí äóíä õîëáîîñ ¿¿ñãýõèéí òóëä 2 õ¿ñíýãò íèéòëýãòàëáàðòàé áàéõ øààðäëàãàòàé. Íèéòëýã òàëáàðóóäûí äîòîðò¿ëõ¿¿ð àãóóëñàí òàëáàðûã àíõäàã÷ ò¿ëõ¿¿ð, ýíãèéí òàëáàðààðä¿ðñëýãäñýíèéã ãàäààä ò¿ëõ¿¿ð ãýíý. Íèéòëýã òàëáàðóóäûí äîòîðàíõäàã÷ ò¿ëõ¿¿ð àãóóëñàí õ¿ñíýãòèéã ãîë õ¿ñíýãò õàðèí ãàäààäò¿ëõ¿¿ð àãóóëñàíûã õîëáîîòîé õ¿ñíýãò ãýíý. Àíõäàã÷ ò¿ëõ¿¿ðÕ îëáîîñò õ¿ñíýãò Ãîë õ¿ñíýãò Ãàäààä ò¿ëõ¿¿ðTGoodsMaste r, TBossMaste r, TCustom erMas te r, Tse llD ata ãýñýí äýýðõ¿¿ñãýñýí 4 õ¿ñíýãòèéí äóíä õîëáîîñ ¿¿ñãýå.1 . ªãºãäëèéí áààçûí óäèðäàõ öîíõîíä äýýðõ 4 õ¿ñíýãò áàéãàà ýñýõèéã áàòëàí õàð.2. Tools öýñíèé Re lationships êîìàíä ýñâýë êîìàíäûí õýðýãë¿¿ðèéã ñîíãî.3. S how Tab le õàðèëöàõ öîíõ íýýãäýõ áºãººä Tables õàâòàñò áàéðëàõ õ¿ñíýãòéèí íýðèéí æàãñààëòààñ TGoodsMaster –èéã 24
  • 25. ñîíãîîä Add òîâ÷ëóóðûã ñîíãî.4. ªìíºõ êîìàíäûí àäèëààð Show Tablå öîíõíû Tables õàâòàñíû æàãñààëòààñ: TBossMaster – èéã ñîíãîîä Add òîâ÷ëóóðûã ñîíãî, TCustomerMaster – èéã ñîíãîîä Add òîâ÷ëóóðûã ñîíãî, TsellData - èéã ñîíãîîä Add òîâ÷ëóóðûã ñîíãîîä ýíýõ¿¿ öîíõîî õààíà.5. 4-í õ¿ñíýãòèéí òàëáàðûí æàãñààëò ãàð÷ èðíý. Àíõäàã÷ ò¿ëõ¿¿ð òàëáàðóóä íü òîä áè÷èãäñýíýýð õàðàãäàíà.Æè÷: Øààðäëàãàòàé ãýæ ¿çâýë õ¿ñíýãòèéí õýìæýýã ººð÷ëºõ, 纺õáîëîìæòîé.6. Äàðààõ çóðàã äýýðõ øèã òàëáàðûí æàãñààëòûã áàéðëóóë. 7. TBossMaster õ¿ñíýãò áà TCustomerMaster õ¿ñíýãòèéí õîîðîíä õîëáîîñ ¿¿ñãýå. TBossMaster õ¿ñíýãòèéí TBossCD òàëáàðûã TCustomerMaster õ¿ñíýãòèéí TBossCD õ¿ðòýë õóëãàíààð ÷èðýõ ¿éëäýë õèéíý.8. Edit Relationship õàðèëöàõ öîíõ íýýãäýíý. 25
  • 26. Table/Query - TBossMaster õ¿ñíýãò (ãîë õ¿ñíýãò) Related/Query - TCustomerMaster íü (õîëáîîñò õ¿ñíýãò) áîëñîí ýñýõèéã áàòëàí õàð.9. Enforce Reference Integrity – Õàíäàëòûí çîõèöîõ ÷àíàð ñîíãîëòûã òîâ÷èéã èäýâõæ¿¿ëýýä Great òîâ÷ëóóðûã ñîíãî. Relationship type – 1:îëîí õîëáîîñòîé áàéãàà èëýðõèéëíý.Õ¿ñíýãòèéí äóíä õîëáîîñ øóãàì ¿¿ñýõ áºãººä TBossMaster-ò “1”(àíõäàã÷ ò¿ëõ¿¿ð), TCustomerMaster-ò “∞” (ãàäààä ò¿ëõ¿¿ð)ãàð÷ èðñýí ýñýõèéã áàòëàí õàðíà.10. TGoodsMaster õ¿ñíýãò áà, TSellData õ¿ñíýãòèéí õîîðîíä õîëáîîñ ¿¿ñãýå. TGoodsMaster õ¿ñíýãòèéí GoodsCD òàëáàðûã TSellData õ¿ñíýãòèéí GoodsCD òàëáàð õ¿ðòýë õóëãàíààð ÷èðýõ ¿éëäýë õèéíý.11. Edit Relationship õàðèëöàõ öîíõ íýýãäýíý. Table/Query - TGoodsMaster õ¿ñíýãò (ãîë õ¿ñíýãò) Related/Query - TSellData õ¿ñíýãò (õîëáîîñò õ¿ñíýãò) áîëñîí ýñýõèéã áàòëàí õàð. 26
  • 27. 12. Enforce Reference Integrity – Õàíäàëòûí çîõèöîõ ÷àíàð ñîíãîëòûã òîâ÷èéã èäýâõæ¿¿ëýýä Great òîâ÷ëóóðûã ñîíãî. Relationship type – 1:îëîí õîëáîîñòîé áàéãàà èëýðõèéëíý.Õ¿ñíýãòèéí äóíä õîëáîîñ øóãàì ¿¿ñýõ áºãººä TGoodsMaster -ò “1”(àíõäàã÷ ò¿ëõ¿¿ð), TSellData-ò “∞” (ãàäààä ò¿ëõ¿¿ð) ãàð÷ èðñýíýñýõèéã áàòëàí õàðíà.13. TCustomerMaster õ¿ñíýãò áà, TSellData õ¿ñíýãòèéí õîîðîíä õîëáîîñ ¿¿ñãýå. TCustomerMaster õ¿ñíýãòèéí CustomerCD òàëáàðûã TSellData õ¿ñíýãòèéí CustomerCD òàëáàð õ¿ðòýë õóëãàíààð ÷èðýõ ¿éëäýë õèéíý.14. Edit Relationship õàðèëöàõ öîíõ íýýãäýíý. Table/Query - TCustomerMaster õ¿ñíýãò (ãîë õ¿ñíýãò) Related/Query - TSellData õ¿ñíýãò (õîëáîîñò õ¿ñíýãò) áîëñîí ýñýõèéã áàòëàí õàð. 27
  • 28. 15. Enforce Reference Integrity – Õàíäàëòûí çîõèöîõ ÷àíàð ñîíãîëòûã òîâ÷èéã èäýâõæ¿¿ëýýä Great òîâ÷ëóóðûã ñîíãî. Relationship type – 1:îëîí õîëáîîñòîé áàéãàà èëýðõèéëíý.16. Õ¿ñíýãòèéí äóíä õîëáîîñ øóãàì ¿¿ñýõ áºãººä TCustomerMaster -ò “1” (àíõäàã÷ ò¿ëõ¿¿ð), TSellData-ò “∞” (ãàäààä ò¿ëõ¿¿ð) ãàð÷ èðñýí ýñýõèéã áàòëàí õàðíà.17. Relationships öîíõûã Save õàäãàëààä õàà. êîìàíäûí õýðýãë¿¿ðýýð18. ªãºãäëèéí áààçûí óäèðäàõ öîíõîíä øèëæ.Æè÷: Õîëáîîñûã çàñâàðëàõ òîõèîëäîëä õîëáîëò äýýð õîñ äàðàëòõèéíý. 28