Hi all i have this database and with it onloading it checks the user name and gets the user level from a table "userstable", and if the user was not in the table it would auto add the user to the table,when it was a standalone it worked fine now i have moved it to a split database on a sql server it wont work!!!!.
here is the coding i was useing if anyone can help it would be great, and it is in Access 2010
Code:
If IsNull(Me.[winid]) Then
DoCmd.SetProperty "newpermitholder", acPropertyVisible, "0"
DoCmd.SetProperty "Todayspermits", acPropertyVisible, "0"
DoCmd.SetProperty "Daily Report Open Permits", acPropertyVisible, "0"
DoCmd.SetProperty "Permitholderslist", acPropertyVisible, "0"
DoCmd.SetProperty "newcompany", acPropertyVisible, "0"
DoCmd.SetProperty "print_dashboard", acPropertyVisible, "0"
DoCmd.SetProperty "Command71", acPropertyVisible, "0"
DoCmd.SetProperty "Command74", acPropertyVisible, "0"
DoCmd.SetProperty "Command75", acPropertyVisible, "0"
End If
If IsNull(Me.[winid]) Then
Dim Rs As DAO.Recordset
Set Rs = CurrentDb.OpenRecordset(userstable)
Rs.AddNew
Rs("LoginID") = GetUser()
Rs.Update
Rs.Close
Set Rs = Nothing
MsgBox "First Time Log in Please Restart Database", vbApplicationModal, "GUEST LOGIN"
DoCmd.Quit acPrompt
End If