Hey Everyone,
So I have Access 2013 32Bit and the majority of my team has 2010. Recently they have been seeing an compile error on one of the forms. Below is the code and it highlights Me.txtuser = Environ("username") - All the code is doing is just looking up the name of the user and stating good morning, good afternoon or good evening.
one thing to mention is this is in a navigation form and everything was working perfectly until I went in and added more pages. I also have 4 user levels. So I am not sure if changing that code or adding the pages made a difference.
**EDIT**
One thing to mention is that I changed the form that loaded on start up to just this greeting page and removed it from the navigation form.
So I have Access 2013 32Bit and the majority of my team has 2010. Recently they have been seeing an compile error on one of the forms. Below is the code and it highlights Me.txtuser = Environ("username") - All the code is doing is just looking up the name of the user and stating good morning, good afternoon or good evening.
one thing to mention is this is in a navigation form and everything was working perfectly until I went in and added more pages. I also have 4 user levels. So I am not sure if changing that code or adding the pages made a difference.
Code:
Private Sub Form_Load()
Me.txtuser = Environ("username")
Me.txtname = DLookup("username", "tbluser", "[racfid] ='" & Me.txtuser & "'")
Me.txtgreeting = MyGreeting(txttime)
Me.txtwelcome = Me.txtgreeting & " " & Me.txtname
Me.txtuser.Visible = False
Me.txtname.Visible = False
Me.txtgreeting.Visible = False
Me.txttime.Visible = False
End Sub
**EDIT**
One thing to mention is that I changed the form that loaded on start up to just this greeting page and removed it from the navigation form.