I'm geting error messages when open my form.
The expression On Load you entered as the event property setting produced the following error: A problem occured while Microsoft Access was communicating with the OLE server or ActiveX Control.
Also same message but for on current.
Here's my code
Public Function WinName()
Me.username = GetWindowsUserName
End Function
Public Function Edit()
If Me!username = [tblpersonnel.username1] Then
AllowEdits = True
ElseIf Me.username = "martiscm" Then
AllowEdits = True
ElseIf Me.username = "larsong" Then
AllowEdits = True
Else: AllowEdits = False
End If
End Function
Also once I'm in the form, if I navigate to the next record I get the same message but it's for On click.
Help Gary
The expression On Load you entered as the event property setting produced the following error: A problem occured while Microsoft Access was communicating with the OLE server or ActiveX Control.
Also same message but for on current.
Here's my code
Public Function WinName()
Me.username = GetWindowsUserName
End Function
Public Function Edit()
If Me!username = [tblpersonnel.username1] Then
AllowEdits = True
ElseIf Me.username = "martiscm" Then
AllowEdits = True
ElseIf Me.username = "larsong" Then
AllowEdits = True
Else: AllowEdits = False
End If
End Function
Also once I'm in the form, if I navigate to the next record I get the same message but it's for On click.
Help Gary