Hi all, I'm using this bit of code on my splash form to ensure that the Db can only be used on computers which I have authorised it for.
'Checks the computer being used is authorised to be able to use this database
Dim sHostName As String
sHostName = Environ$("computername")
If sHostName <> "ComputerName" or "AnotherName" Then DoCmd.Quit
What I am struggling with is the syntax for NOT. in other words if its not the above then database quits.
'Checks the computer being used is authorised to be able to use this database
Dim sHostName As String
sHostName = Environ$("computername")
If sHostName <> "ComputerName" or "AnotherName" Then DoCmd.Quit
What I am struggling with is the syntax for NOT. in other words if its not the above then database quits.