How to ter FQDN given the IP Address

  • Thread starter Thread starter Rich
  • Start date Start date
R

Rich

Hello,

Can anyone tell me or point me to a resource that explains how I can click a
command button, and get the fully qualified domain name of a server given
it's IP address? The IP Address is known and is displayed on the form. The
FQDN textbox on the form should then be set to the value returned.

TIA,
Rich
 
Check what Randy Birch has at
http://vbnet.mvps.org/code/network/hostnamefromip.htm

Obligatory warning: Randy's site is aimed at VB programmers. There are some
significant differences between the controls available for forms in VB and
in Access. Because of that, some (most?) of his samples won't port directly
to Access without some tweaking.

That having been said, in a quick scan of that code, the only change I could
see being needed for use in Access would be to change

Private Sub Command1_Click()

Text2.Text = GetHostNameFromIP(Text1.Text)

End Sub

to

Private Sub Command1_Click()

Me.Text2 = GetHostNameFromIP(Me.Text1)

End Sub
 
Back
Top