Hiya,
I am using a MS Access 2003 ADP Project which connects to a SQL Server 2005 (this maybe the cause of the problem I don't know).
I want to toggle the "DataEntry" property of the forms depending on who is logged in. My code looks up an Admin field from a table containing users and if they have admin rights then I want to make DataEntry false.
My code is:
Code:
If isAdmin = True Then
Forms!frmSecondments.DataEntry = False
Forms!frmSecondments.NavigationButtons = True
Else
Forms!frmSecondments.DataEntry = True
Forms!frmSecondments.NavigationButtons = False
End If
The navigation buttons are being toggled ok and as I am not getting any error messages I think it could be the record source.
Does anyone have any ideas?
Thanks in advance