Коллективная работа в access - edrive

Click here to load reader

Post on 13-Feb-2017

226 views

Category:

Documents

6 download

Embed Size (px)

TRANSCRIPT

  • . .

    Access

    - 2003

  • 681.3.6 .. . Access. ., 2002. 29 .

    Access: , , , . , Microsoft Access.

    .., 2003.

  • 3

    1. .............................................................. 4 .................................................................................................. 4 ................................................................................ 5 ................................................................................................... 7 ......................................................................................................... 8 .......................................................................................... 9 ........................................................................................... 10 ................................................................................................ 11

    2. .......................................................... 11 ................................................................................................ 11 ......................................................................................... 12 ................................................................................................ 12 ................................................................................. 13 ...................................................................................... 13 ................................................................................. 14 VBA ......................................................................................... 14 ...................................................................... 15 MDE ........................................................................................................... 16 .......................................................................................... 17

    3. .............................................................. 17 ........................................................................................ 17 ....................................................................................... 18 ............................................................................................................. 19 .................................................................................................... 20 ............................................................................................... 21 ......................................................................................... 21 ......................................................................................... 21

    4. .............................................. 22 ....................................................................................................... 22 ................................................................................................................. 23 ...................................................... 23 ...................................................................................................... 23 ........................................................... 24 ............................................................................ 25 .......................................................................... 25 ........................................... 26 ........................................................................ 27

    ................................................................................................... 29

  • 4

    1.

    Access , , . , ..

    , AutoExec, . Access , , . , , Access , , . :

    , Access . .ICO . , ;

    , Access; ,

    ; ,

    ; ;

    Access, , / Access:

    ; Immediate; .

    AutoExec

    . AutoExec , , . ,

  • 5 / , AutoExec , , , , .

    AutoExec , , , , , VBA, AllowBypassKey False:

    Sub ()

    On Error GoTo If MsgBox(" ?", vbYesNo) = vbYes Then = True Else = False End If CurrentDb.Properties("AllowBypassKey") = MsgBox " " Exit Sub

    : CurrentDb.Properties.Append _

    CurrentDb.CreateProperty("AllowBypassKey", DB_Boolean, )

    MsgBox " " End Sub

    Sub ()

    On Error GoTo CurrentDb.Properties.Delete "AllowBypassKey" Exit Sub

    : MsgBox " "

    End Sub

    Access , :

    , ; /excl ; /ro ; /user Access

    ; /pwd Access ; /profile Access ,

    Windows ;

  • 6 /compact

    , ;

    /convert , Access, ;

    / Access ; /cmd

    ( ); /nostartup ; /wrkgrp Access

    . Access :

    Windows . ;

    ; Microsoft Office (

    , Access); Access

    ; .

    , Access : C:\Program Files\Microsoft Office\Office\MSAccess.exe C:\Program Files\Microsoft Office\Office\Samples\.mdb /excl

    ,

    Access . Access , , , :

    , Access ( ,

    Office Microsoft Office Program Files);

    Microsoft Access ;

    ;

    .

  • 7 , .

    Windows. :

    ,

    ; ,

    , , , :

    D:\Program Files\Microsoft Office\Office\Msaccess D:\VAL\Access\Access2002\.mdb /ro /x 1

    Access , , . . , . , , , . , , .

    Access , Windows .

    , .

    . . , ;

    ;

    ;

    , ;

    ,

  • 8 , ;

    .

    Micosoft Office, , . : , . Access, . , . 1 2 Access. , . . , . :

    . ., , Access;

    , ;

    :

    ;

    , ;

    ;

    . ;

    ;

  • 9 ; ; .

    , . VBA: Sub () For Each In CommandBars(20).Controls = & .Caption & Chr(13) Next MsgBox , , "" For Each In CommandBars If Not .BuiltIn And Not .Visible Then _

    .Delete Next On Error Resume Next For i = 0 To CommandBars.Count CommandBars(i).Reset Next End Sub

    ,

    :

    ;

    ;

    ;

    ; ; ; (, )

    . , , . . . ( ) VBA, :

  • 10 Function () DoCmd.AddMenu "", "", " " End Function .

    , : , . , . . & .

    , :

    .

    .

    :

    ;

    ; ; ; ; ,

    , , ;

    ;

    VBA =().

  • 11

    , , . . , . . , :

    ;

    ;

    ;

    , , ;

    .

    2.

    , -. . . , , MS Office .

    . . , . , . , , , , . .

    Access . . , . , .

  • 12 , , .

    . , .

    VBA. , , .

    ; . .

    /; .

    , , . , , , .

    . . ;

    . , . . ., .

    Access , .

    , . .

    . .

  • 13 . .

    ;

    ;

    .

    Access , , . . . /compact .

    Access , , , . , . , Access, Access , _Backup.

    , . .

    , . ./;

    ;

    , ;

    , .

    , VBA, : Sub () If Dir("db2.mdb") "" Then Kill "db2.mdb"

  • 14 DBEngine.CompactDatabase "db1.mdb", "db2.mdb", , dbEncrypt End Sub

    . , . , , . (Access , ), . ( , ).

    , , . , .

    :

    ;

    . . ; .

    /pwd Access .

    , ; . . ; .

    VBA

    VBA , Access. , , , VBA, . VBA

    . . Visual Basic

    Visual Basic; Tools . Properties Visual Basic

    Protection;

  • 15 Lock project for viewing; Password, ,

    Confirm password. Access VBA .

    , Protection Properties.

    , Lock project for viewing , , Properties .

    ,

    , HTML, . , , :

    , , HTML , ;

    , , , , ;

    Visual Basic Microsoft Internet Explorer .

    HTML

    , , .

    , , , , . Data Link Properties All, Jet OLEDB:System database UNC Property Value.

  • 16 MDE

    MDE (Microcernel Development Environment) . MDE- :

    , ,

    ; ,

    ; Access

    VBA (MDE- );

    , . , , , MDE-. , , , MDE-, Access, , .

    MDE-

    , . . MDE-;

    MDE , MDE MDE;

    MDE .

    VBA,

    MDE- , , . VBA - , , . , , .

    MDE- . , MDE- :

    ,

    ;

  • 17 VBA ; ,

    ; ,

    , , MDE-.

    Access . , . , . . , , . .

    . . ;

    ;

    ; , ,

    . . .

    , .

    3.

    . , , :

    .

    ;

    : ;

  • 18

    , . Access :

    , Access , , . , , . .

    , Access , .

    , .

    ODBC , Access , ODBC. .

    . , .

    Access , . Access , :

    ; , ,

    ; ,

    .

    , ( ), . , , Access :

  • 19 , ,

    ; , ,

    , , ; ,

    .

    ( ) Access , , , .

    , Access . . .

    , , Access .

    . 4 . . Access. , , , . .. . , , SQL.

    Access .LDB , . . Access .

    , . ,

  • 20 . , ., . /excl .

    , , . , , , .

    . , , . , .

    . , Access , . , . . , .

    , .

    , , . .

    , .

    . . , ;

    , ;

    , . , .

  • 21

    . , .

    . . ;

    ; ;

    ; ,

    ; .

    , :

    ; . .; ,

    ; ,

    ; .

    . , Access . . . .

    , , , , , , . . . . , , .

  • 22 Access . , . , . . , . , , . Access .

    4.

    . , . :

    -

    , , , , ;

    . . , Access, . . , , . , , . , , .MDW. .

    SYSTEM.MDW \Program Files\Microsoft Office\Office\1049 \1033 Admin, Admins Users, . , .

    Admin Users Admins, Users ,

  • 23 Admins . Admin . , Access . /user /pwd Access .

    , . , .

    , . , . , . , . , .

    :

    Access ; ; ; .

    Access.

    , . , .

    , , . .;

    , SYSTEM.MDW, ;

  • 24 ; , ; ,

    Admins Users, ; Users; , Admin,

    ; ,

    Admin Users Admins ;

    .

    , , :

    Admins ; , ; ,

    ; , ;

    ; ; ;

    ; Users .

    , , . .

    . Access , , . , .

    Admins; Users ;

  • 25 ; Access Admin; ; .

    , (WRKGADM.EXE), Access \Program Files\ Microsoft Office\ Office. . , , . , , , , .

    Access . , - Access . Access, /wrkgrp Access.

    .

    Admins, . . ;

    ;

    ( Admin) ;

    , ( Users) ;

    , ( Users) ;

  • 26

    ;

    ;

    ;

    ( Admins Users) ;

    , . Access, Admin.

    VBA. : Sub () On Error GoTo Set = DBEngine.Workspaces(0) With Set = .CreateUser("") .PID = "6789" .Password = "1" .Users.Append Set = .CreateGroup("","9876") .Groups.Append End With Exit Sub : End Sub Sub () On Error Resume Next Set = DBEngine.Workspaces(0) .Users.Delete "" .Groups.Delete "" End Sub

    : , , , , . Access ,

  • 27 , . :

    /

    ,

    , ,

    ,

    ,

    ,

    :

    Admins, . .;

    ;

    .

    , :

    , , . .;

  • 28 ; ;

    ; .

    , Access

    , / , , , .

    , , , , , , . .

    .; /

    ; ,

    ; ; ;

    , , , , , .

    ,

    , , , :

    ; ;

    . ,

    , .

  • 29

    1. ., . Microsoft Access 2002. ., -, 20002.

    2. .. . ., , 2001.

    3. ., ., . : , . ., , 2002.

    4. . Microsoft Access. ., , 2000.

    5. . Microsoft Access 2000 ; 2- . ., BHV, 2000.

    6. .. Access 2000. . .: , 2000.

    7. .., .. Microsoft Access 2000. ., BHV, 1999.

    8. . Microsoft Access 2000. ., , 2000.