Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

Microsoft Access Execute

All examples are included with download of MBS FileMaker Plugin.

Microsoft Access Execute.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
Value Lists0
Custom Functions0
Custom Menus33
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Microsoft Access Execute
5 fields defined, 2 records
Microsoft Access Execute

Fields

Table Name: Microsoft Access Execute - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
SQLNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      OutputNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          Connection StringNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Global
          • Repetitions: 1
          • Index Language: German
              UsernameNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Global
              • Repetitions: 1
              • Index Language: German
                  PasswordNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Global
                  • Repetitions: 1
                  • Index Language: German

                      Layout Objects: Microsoft Access Execute

                      Regular Fields

                      Field Name: Microsoft Access Execute::SQL
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 132 pt
                      • Left: 138 pt
                      • Bottom: 152 pt
                      • Right: 517 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      Field Behavior:
                      • Allow field to be entered: In Find mode, In Browse mode
                      • Touch keyboard type: System Default
                      • Go to next field using: Tab key
                      Yes

                      Field Name: Microsoft Access Execute::Output
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 156 pt
                      • Left: 138 pt
                      • Bottom: 434 pt
                      • Right: 517 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      Field Behavior:
                      • Allow field to be entered: In Find mode, In Browse mode
                      • Touch keyboard type: System Default
                      • Go to next field using: Tab key
                      Yes

                      Field Name: Microsoft Access Execute::Connection String
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 30 pt
                      • Left: 138 pt
                      • Bottom: 80 pt
                      • Right: 517 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      Field Behavior:
                      • Allow field to be entered: In Find mode, In Browse mode
                      • Touch keyboard type: System Default
                      • Go to next field using: Tab key
                      No

                      Field Name: Microsoft Access Execute::Username
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 84 pt
                      • Left: 138 pt
                      • Bottom: 98 pt
                      • Right: 391 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      Field Behavior:
                      • Allow field to be entered: In Find mode, In Browse mode
                      • Touch keyboard type: System Default
                      • Go to next field using: Tab key
                      No

                      Field Name: Microsoft Access Execute::Password
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 102 pt
                      • Left: 138 pt
                      • Bottom: 116 pt
                      • Right: 391 pt
                      • Anchoring: Left, Top
                      Field Format:
                      • Edit Box
                      Field Behavior:
                      • Allow field to be entered: In Find mode, In Browse mode
                      • Touch keyboard type: System Default
                      • Go to next field using: Tab key
                      No

                      Group Buttons

                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Run Script
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 192 pt
                      • Left: 18 pt
                      • Bottom: 223 pt
                      • Right: 121 pt
                      • Anchoring: Left, Top
                      Perform Script [ “Run” ]

                      Scripts:


                      Script Hierarchy

                      Run
                      Trace

                      Next Script: [Trace]
                      Script NameRun
                      Run script with full access privilegesOff
                      Include In MenuYes
                      Layouts that use this script
                      Scripts that use this script
                        Script Definition
                        Script Steps
                        • Set Variable [ $Connection; Value:MBS("SQL.NewConnection") ]
                        • #Tell plugin we want to use ODBC to Access
                        • Set Variable [ $result; Value:MBS("SQL.SetClient"; $Connection; "ODBC") ]
                        • Set Variable [ $result; Value:MBS("SQL.Connect"; $Connection; Microsoft Access Execute::Connection String; Microsoft Access Execute::Username; Microsoft Access Execute::Password) ]
                        • If [ $result ≠ "OK" ]
                        • Show Custom Dialog [ Message: "Error: " & $result; Default Button: “OK”, Commit: “No”; Button 2: “Abbrechen”, Commit: “No” ]
                        • Set Variable [ $result; Value:MBS("SQL.FreeConnection"; $Connection) ]
                        • Exit Script [ ]
                        • End If
                        • #Create select and run it
                        • Set Variable [ $SQL; Value:Microsoft Access Execute::SQL ]
                        • Set Variable [ $Command; Value:MBS("SQL.NewCommand"; $Connection; $sql) ]
                        • #Run it
                        • Set Variable [ $result; Value:MBS("SQL.Execute"; $Command) ]
                        • If [ $result ≠ "OK" ]
                        • Show Custom Dialog [ Message: "Error: " & $result; Default Button: “OK”, Commit: “No”; Button 2: “Abbrechen”, Commit: “No” ]
                        • Else
                        • Set Variable [ $result; Value:Substitute(MBS("SQL.GetFieldNameList"; $Command); ¶; Char(9)) ]
                        • Loop
                        • Set Variable [ $r; Value:MBS("SQL.FetchNext"; $Command) ]
                        • Exit Loop If [ $r ≠ 1 ]
                        • Set Variable [ $result; Value:$result & ¶ & Substitute(MBS("SQL.GetFieldValueList"; $Command); ¶; Char(9)) ]
                        • End Loop
                        • Set Field [ Microsoft Access Execute::Output; $result ]
                        • End If
                        • #Cleanup
                        • Set Variable [ $result2; Value:MBS("SQL.FreeCommand"; $Command) ]
                        • Set Variable [ $result2; Value:MBS("SQL.FreeConnection"; $Connection) ]
                        Fields used in this script
                        Scripts used in this script
                          Layouts used in this script
                            Tables used in this script
                            Table occurrences used by this script
                            Custom Functions used by this script
                              Custom menu set used by this script

                                Previous Script: [Run]
                                Script NameTrace
                                Run script with full access privilegesOff
                                Include In MenuYes
                                Layouts that use this script
                                  Scripts that use this script
                                    Script Definition
                                    Script Steps
                                    • Set Variable [ $r; Value:MBS("Trace") ]
                                    Fields used in this script
                                      Scripts used in this script
                                        Layouts used in this script
                                          Tables used in this script
                                            Table occurrences used by this script
                                              Custom Functions used by this script
                                                Custom menu set used by this script

                                                  Download example: Microsoft Access Execute

                                                  Used functions: