I figured it out myself guys. If anyone is trying to do the same thing, I had to add "Form" in front of the form name.
eg.
Private Sub Form_Load() Dim strUser As String Dim strApp As String strUser = Environ("username") strApp = "Form frmTest1" Me.txtUser = strUser Me.txtLink3 = strApp...