Here's my code.

VB Code:
  1. Private Sub cmdUpdate_Click()
  2.     Dim GoodOrBad As Long
  3.     Dim URL As String
  4.     Dim EndPath As String
  5.     URL = UpdateLink & "data.ssl"
  6.     EndPath = App.Path & "data2.ssl"
  7.     lblVersion.Caption = "Downloading File..."
  8.     GoodOrBad = URLDownloadToFile(0, URL, EndPath, 0, 0)
  9.     If GoodOrBad = 0 Then
  10.         lblVersion.Caption = "Finished."
  11.         MsgBox "File Downloaded."
  12.         frmSpellSwap.LoadData
  13.     Else
  14.         MsgBox "There was a problem downloading the file."
  15.         lblVersion.Caption = "Version: " & Version
  16.     End If
  17. End Sub

When I run this, the file doesn't actually download and GoodOrBad always equals zero. What am I doing wrong?