SlideShare a Scribd company logo
Macro & Modul
(Macro) ก                 ก
       ก             ก
  !" #$ก%&         $          ' &    (
         ( ) *          +, !" -     +
ก              *ก'    *% % ,
./%&   ก -       +-      ก       ก          #" ก
   % ก     !" !    % ) * ! 0ก                    ,ก 1*(Event)
% -ก          $      #"- &           ,2 -" % ) * $-'
(Sale) !" 'ก ( ) * $ $             Master % /0            -'
%              $ ! #$        % (              ! ) *          ก&!"
        0ก      ก           % #" ก3 !" 'ก           %& !" ! %
4      / $                 % ก ( 4             /
ก             % )5     4      / 0 #.      - ก ) *             0
1. Standalone macro           6
Public -    0 ก3 $/% Category        %
Navigator pane 7 0      - +     %&

2. Embedded macro     6 #0 89 $/) * !
  $  #"- -  ก   - Event :" '" %&%  *&
2007
- + 0 ก -" % ก , Others   7 Create   ! %&
Macro Builder
#" 7 Create ! ก -" Macro % ก , Other
Microsoft Access 0 ( Macro Window %     %
   7 Design 6 $% 7 Macro Tools
ก                       ก    3
◦ก                (Action)       ! "# ก   !$ %&$ &'   #$ "(ก%&$ )*
 "# ก
◦ก +        +       (, - (Comment)   ! ! %1กก %      #
 2), 3 4%&$ "#   ก 5! &67 &8"9 ก %
◦ก "              4ก( 94 5! (Action argumetns)  ! "# ก
 ก ,ก %            +       5!
ก      Macro
1.   A 4 "         !       B C + B"   ก D4
     , 9!6 5#$ A 4 Menu,! 9!
ก            Macro
2.       )*   !    G,A 4 "3   ,! 9!
ก       Macro
3. "(ก "# ก+       " ' 5#$ A 4 %&$9 ก   G, 5   5(ก
          ก D4 " "(กH!,7
ก         Macro
4. "&$ 5#$ )*    button-member " "(ก -2 (6
ก         Macro
5.237, )*   !    G,A 4 ,! 9!
ก        Macro
6.     )*      ! G,A 4 ('     %&$ 6 + %&$ 1)
     Master = A 4 "!ก = button-master
     Purchase = ! ( + = button-purchase
     Sale = + ( = button-sale
     Suppliers = 8B ( = button-suppliers
Macro
ก         Macro
7. "(ก "# ก           (Macro) ,! U V

8. 23 กX      ก ก , 4ก( 94+              5! 1$ & )* "# ก%&$
   "&$ 7 9     5! %&$ "# ก 5 OpenForm 23 & 4ก( 94,! B
ก        Macro
 9. ก ก   ,    4ก(   94+   5! OpenForm




ก ,5#$ A 4 , "# ก2 กA 4 %&$    7 ' C + B"
"# ก )  Form
 "3 ,+       9      ก9(
ก        Macro
10. "(ก )* & ก'5 " % ก ! %1ก5#$  Macro1 23   กXA 4 %&$
9 ก G, ' %&$ &6 & ก G,A 4 Member
ก       Macro
'               !   G,A 4 9 7 &6 ('   %&$ 6 + %&$ 2)
    Master = A 4 "!ก = Macro2
    Purchase = ! ( + = Macro3
    Sale = + ( = Macro4
    Suppliers = 8B ( = Macro5
ก        Macro
11. ก & ก'5     ' ($ "(ก%&$ )*    ! G,A 4 %&$9 ก 5
  #$ 9 ก ,A 4
          G     5(ก ก D4(Member) , "(ก%&$ )* " ก ,%&$
 )D !9( ' H 9)ก D4 "# ก #$ "(ก " ก ,        Macro1 ,! U V
ก    Macro
12. %," G,A 4   5(ก ก D4(Member) 2 ก
A 4 Menu , ก ,' A 4 Menu B' )
A 4 " "(ก )* G,A 4   5(ก ก D4
(Member) 23 กX A 4 Member '         H
'5 7,%! %&
ก       Macro
' & ก'5              !    G,A 4 9 7 &6 ('   %&$ 6 + %&$ 3)
    Master = A 4      "!ก = Macro2
    Purchase = !     ( + = Macro3
    Sale = + (        = Macro4
    Suppliers = 8B    ( = Macro5
ก           Macro

13. ก                    ! G, A 4 %&$ & ก'5   ,   Macro
 "ก          , 5!        Close %&$ ก( 94 "# ก
        5 (,+ !9H) Form
        5#$ !9H) # A 4 Member
           ! %1ก    H1 ' 9# ก ! %1กก G, # 7
        Prompt ' 9# ก ! %1กก G,
        Yes ! %1ก , 7 9 9#
        No 7 ! %1ก
ก      Macro
ก -      -    ( ) * $- ,2 ( ) * %   ) * #"
 ก ( ก     0ก      & Close /
ก       Macro
ก       *ก'  *    & Close   /
ก                Macro
       'ก ,2       #$ก%&        ก&!" MacroClose1
14.       )*   G,A 4 ' A 4 Member " ! %1ก5#$ )*     Close-member
15. & ก'5           MacroClose1 , ก , )D !9(+ )* G,A 4 ' H
    9)ก D4       #$ "(ก MacroClose1 ,! U V
ก        Macro
'                 ! G,A 4 9 7 &6 ('   %&$ 6 + %&$ 4)
    Master = A 4 "!ก = Macro2
    Purchase = ! ( + = Macro3
    Sale = + ( = Macro4
    Suppliers = 8B ( = Macro5
ก
        !"  ก % ( ) *   /     # #" ( 4      / % &!"
        AutoExec $ 0 ก Auto Executable %
     $     '+    ก %      #            ' !" ( 4     /
    ก 5 Shift     1 ( 4     /
ก     ก
    1. -   !"   ( ) *   / 6
ก     ก
    2. 'ก ,2   #$ก%&   ก&!"   AutoExec

More Related Content

PDF
Envases para competir
PDF
Listing 510 East 80th
PDF
Honey baked figs
PDF
Next Generation MapReduce
PDF
Bay Area HUG Feb 2011 Intro
PDF
Why Everyone Needs Credit Repair
PDF
экспорт на рынок ес знак се
PDF
Plastic Bags
Envases para competir
Listing 510 East 80th
Honey baked figs
Next Generation MapReduce
Bay Area HUG Feb 2011 Intro
Why Everyone Needs Credit Repair
экспорт на рынок ес знак се
Plastic Bags

What's hot (19)

PDF
Est ce que la mise au point d'un vaccin changerait les stratégies de lutte co...
PDF
Coanda Effect UAV
PDF
Entregable 1 - SIMR (1º DAI)
PDF
New earth leaders brazilie 2011
PDF
Secrets of Real-World Software Development
PDF
Nota 041109
PDF
João Rodrigues - be IN Bragança
PDF
Médiaelemzési alapfogalmak
PDF
Small Ideas.. 003
PDF
Spe tech transfer luncheon nov 2014
KEY
Delve Prototyping In The Wild
PDF
Stb ckm
PDF
Helpers Briefing
PDF
Christian Bason, MindLab Denmark - MaRS Global Leadership Series
PDF
Parmesan biscuits
PDF
Somkait
PDF
PDF
Hacking Your Information Workflow Handout
Est ce que la mise au point d'un vaccin changerait les stratégies de lutte co...
Coanda Effect UAV
Entregable 1 - SIMR (1º DAI)
New earth leaders brazilie 2011
Secrets of Real-World Software Development
Nota 041109
João Rodrigues - be IN Bragança
Médiaelemzési alapfogalmak
Small Ideas.. 003
Spe tech transfer luncheon nov 2014
Delve Prototyping In The Wild
Stb ckm
Helpers Briefing
Christian Bason, MindLab Denmark - MaRS Global Leadership Series
Parmesan biscuits
Somkait
Hacking Your Information Workflow Handout
Ad

More from kruninkppk (7)

PDF
Report
PDF
PDF
Query
PDF
Table
PDF
Database1
PDF
Database
PDF
Unit1
Report
Query
Table
Database1
Database
Unit1
Ad

Recently uploaded (20)

PDF
Hybrid model detection and classification of lung cancer
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Architecture types and enterprise applications.pdf
PDF
project resource management chapter-09.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
The various Industrial Revolutions .pptx
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
Hybrid model detection and classification of lung cancer
TLE Review Electricity (Electricity).pptx
Architecture types and enterprise applications.pdf
project resource management chapter-09.pdf
Getting Started with Data Integration: FME Form 101
Final SEM Unit 1 for mit wpu at pune .pptx
Univ-Connecticut-ChatGPT-Presentaion.pdf
OMC Textile Division Presentation 2021.pptx
cloud_computing_Infrastucture_as_cloud_p
O2C Customer Invoices to Receipt V15A.pptx
A comparative study of natural language inference in Swahili using monolingua...
The various Industrial Revolutions .pptx
Developing a website for English-speaking practice to English as a foreign la...
1 - Historical Antecedents, Social Consideration.pdf
Tartificialntelligence_presentation.pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Assigned Numbers - 2025 - Bluetooth® Document

Macro

  • 2. (Macro) ก ก ก ก !" #$ก%& $ ' & ( ( ) * +, !" - + ก *ก' *% % ,
  • 3. ./%& ก - +- ก ก #" ก % ก !" ! % ) * ! 0ก ,ก 1*(Event) % -ก $ #"- & ,2 -" % ) * $-' (Sale) !" 'ก ( ) * $ $ Master % /0 -' % $ ! #$ % ( ! ) * ก&!" 0ก ก % #" ก3 !" 'ก %& !" ! % 4 / $ % ก ( 4 / ก % )5 4 / 0 #. - ก ) * 0
  • 4. 1. Standalone macro 6 Public - 0 ก3 $/% Category % Navigator pane 7 0 - + %& 2. Embedded macro 6 #0 89 $/) * ! $ #"- - ก - Event :" '" %&% *& 2007
  • 5. - + 0 ก -" % ก , Others 7 Create ! %& Macro Builder
  • 6. #" 7 Create ! ก -" Macro % ก , Other Microsoft Access 0 ( Macro Window % % 7 Design 6 $% 7 Macro Tools
  • 7. ก 3 ◦ก (Action) ! "# ก !$ %&$ &' #$ "(ก%&$ )* "# ก ◦ก + + (, - (Comment) ! ! %1กก % # 2), 3 4%&$ "# ก 5! &67 &8"9 ก % ◦ก " 4ก( 94 5! (Action argumetns) ! "# ก ก ,ก % + 5!
  • 8. Macro 1. A 4 " ! B C + B" ก D4 , 9!6 5#$ A 4 Menu,! 9!
  • 9. Macro 2. )* ! G,A 4 "3 ,! 9!
  • 10. Macro 3. "(ก "# ก+ " ' 5#$ A 4 %&$9 ก G, 5 5(ก ก D4 " "(กH!,7
  • 11. Macro 4. "&$ 5#$ )* button-member " "(ก -2 (6
  • 12. Macro 5.237, )* ! G,A 4 ,! 9!
  • 13. Macro 6. )* ! G,A 4 (' %&$ 6 + %&$ 1) Master = A 4 "!ก = button-master Purchase = ! ( + = button-purchase Sale = + ( = button-sale Suppliers = 8B ( = button-suppliers
  • 15. Macro 7. "(ก "# ก (Macro) ,! U V 8. 23 กX ก ก , 4ก( 94+ 5! 1$ & )* "# ก%&$ "&$ 7 9 5! %&$ "# ก 5 OpenForm 23 & 4ก( 94,! B
  • 16. Macro 9. ก ก , 4ก( 94+ 5! OpenForm ก ,5#$ A 4 , "# ก2 กA 4 %&$ 7 ' C + B" "# ก ) Form "3 ,+ 9 ก9(
  • 17. Macro 10. "(ก )* & ก'5 " % ก ! %1ก5#$ Macro1 23 กXA 4 %&$ 9 ก G, ' %&$ &6 & ก G,A 4 Member
  • 18. Macro ' ! G,A 4 9 7 &6 (' %&$ 6 + %&$ 2) Master = A 4 "!ก = Macro2 Purchase = ! ( + = Macro3 Sale = + ( = Macro4 Suppliers = 8B ( = Macro5
  • 19. Macro 11. ก & ก'5 ' ($ "(ก%&$ )* ! G,A 4 %&$9 ก 5 #$ 9 ก ,A 4 G 5(ก ก D4(Member) , "(ก%&$ )* " ก ,%&$ )D !9( ' H 9)ก D4 "# ก #$ "(ก " ก , Macro1 ,! U V
  • 20. Macro 12. %," G,A 4 5(ก ก D4(Member) 2 ก A 4 Menu , ก ,' A 4 Menu B' ) A 4 " "(ก )* G,A 4 5(ก ก D4 (Member) 23 กX A 4 Member ' H '5 7,%! %&
  • 21. Macro ' & ก'5 ! G,A 4 9 7 &6 (' %&$ 6 + %&$ 3) Master = A 4 "!ก = Macro2 Purchase = ! ( + = Macro3 Sale = + ( = Macro4 Suppliers = 8B ( = Macro5
  • 22. Macro 13. ก ! G, A 4 %&$ & ก'5 , Macro "ก , 5! Close %&$ ก( 94 "# ก 5 (,+ !9H) Form 5#$ !9H) # A 4 Member ! %1ก H1 ' 9# ก ! %1กก G, # 7 Prompt ' 9# ก ! %1กก G, Yes ! %1ก , 7 9 9# No 7 ! %1ก
  • 23. Macro ก - - ( ) * $- ,2 ( ) * % ) * #" ก ( ก 0ก & Close /
  • 24. Macro ก *ก' * & Close /
  • 25. Macro 'ก ,2 #$ก%& ก&!" MacroClose1 14. )* G,A 4 ' A 4 Member " ! %1ก5#$ )* Close-member 15. & ก'5 MacroClose1 , ก , )D !9(+ )* G,A 4 ' H 9)ก D4 #$ "(ก MacroClose1 ,! U V
  • 26. Macro ' ! G,A 4 9 7 &6 (' %&$ 6 + %&$ 4) Master = A 4 "!ก = Macro2 Purchase = ! ( + = Macro3 Sale = + ( = Macro4 Suppliers = 8B ( = Macro5
  • 27. !" ก % ( ) * / # #" ( 4 / % &!" AutoExec $ 0 ก Auto Executable % $ '+ ก % # ' !" ( 4 / ก 5 Shift 1 ( 4 /
  • 28. ก 1. - !" ( ) * / 6
  • 29. ก 2. 'ก ,2 #$ก%& ก&!" AutoExec