I would like to display a message when the form loads, it will warn the user that they are in update mode if the db attribute is not set to read only. I have the following: however it is not displaying the msgbox. Can someone point me in the right direction.
Private Sub Form_Load()
vAttributes = GetAttr("C:\TM.mdb")
If vAttributes = vbEdit Then
MsgBox "Database is in Update Mode!", vbInformation, "UPDATE MODE!"
End If
End Sub
Private Sub Form_Load()
vAttributes = GetAttr("C:\TM.mdb")
If vAttributes = vbEdit Then
MsgBox "Database is in Update Mode!", vbInformation, "UPDATE MODE!"
End If
End Sub