Results 1 to 6 of 6
  1. #1
    Luu is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Posts
    5

    How Imports System.Management in access 2007

    Hello
    How to import System.Management to Access 2007 ?

    My function
    what is wrong?




    Function Button1() As String

    Dim searcher As New ManagementObjectSearcher
    searcher = ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia")

    Dim kodReturn As String
    kodReturn = ""

    Dim hdd As ManagementObject


    For Each hdd In searcher.Get()
    Try


    Dim serial As String
    serial = HexToString(hdd("SerialNumber").ToString())

    Catch ex As Exception

    End Try

    Exit For
    Next hdd

    End Function



    Please help, thank you

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    What is System.Management?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Luu is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Posts
    5
    Quote Originally Posted by June7 View Post
    What is System.Management?
    It is the library.
    in Visual Studio using it, but I can not acces it imported.
    can it ever?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    I can't find a VBA library named 'System.Management'. There is 'System' and various other 'System ...' names. I still don't know what System.Management is, even if there is a library for it. Is it a software application, like Outlook, Word, PowerPoint which also have VBA libraries?

    Libraries can be added. I have never done that.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Luu is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Posts
    5
    this is the library: http://msdn.microsoft.com/en-us/libr...anagement.aspx

    I did the first program in VB. And then I wanted to get Acces.

  6. #6
    SteveH2508 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Chelsea, London, England
    Posts
    117
    System.Management is VB.Net. Access is VBA - can't be done.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Employees Database Management System
    By salsai in forum Database Design
    Replies: 3
    Last Post: 01-22-2012, 12:45 AM
  2. Access 2007 Store Management Database
    By dnbbrain in forum Access
    Replies: 9
    Last Post: 10-19-2011, 02:29 PM
  3. SYSTEM.MDW MS Access 2007.
    By SIGMA248 in forum Access
    Replies: 2
    Last Post: 03-21-2011, 05:52 AM
  4. Time and Leave Management System
    By P5C768 in forum Database Design
    Replies: 0
    Last Post: 03-10-2011, 11:20 PM
  5. ATM Cash Management System
    By NexusMike in forum Access
    Replies: 1
    Last Post: 08-09-2010, 12:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums