Hilary Stoupa:
That's the thing it doesn't work for me. I currently have this:
If DateDiff("m", lastModified, date2) = 0 Then
x = MsgBox("You have an outdated database stored on your computer. Please close the form and download the newest database.", 0, "Outdated Database")
Application.ActiveWindow.Close()
End If
The if statement works because the message box shows. But for some reason it won't close and I have no clue why.
EDIT: I know that it is currently set as 0 month difference. That is so I can test that the code actually works.