getting the MAC address

A

ac

Dear all,

I would like make my access program BE stores the MAC address of the front
end stations so that only the regonise MAC address
can be used?

how can i do it? how can i protect the MAC table at the back end so that no
one can change it or see it?

thank you.

ac.
 
J

JohnFol

You can also do this using WMI, but not sure what the lib to use in Access
is. Here's a .Net bit of code to do it.

Dim mc As System.Management.ManagementClass

Dim mo As ManagementObject

mc = New ManagementClass("Win32_NetworkAdapterConfiguration")

Dim moc As ManagementObjectCollection = mc.GetInstances()

For Each mo In moc

If mo.Item("IPEnabled") = True Then

MsgBox("MAC address " & mo.Item("MacAddress").ToString())

End If

Next
 
Top