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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top