I saw that as I posted it and fixed it, but it didn't make a difference.

This seems to work but I like the original function much better:
VB Code:
  1. Public Function MakeURL(Suffix As String, Optional hostname As String, Optional port As Long, _
  2.          Optional path As String) As String
  3.     If hostname = Empty Then hostname = ServerSettings.Address
  4.     If port = 0 Then port = ServerSettings.port
  5.     If path = Empty Then path = ServerSettings.path
  6.    
  7.     MakeURL = "http://" & hostname & IIf(port = "80", "", ":" & port) & path & Suffix
  8. End Function