Hello, I'm attempting to populate a picture on a form load event. My code is failing when I try to set focus to another control on the form once I get the value I need from the first control I setFocus on.
What am I doing wrong? The error is: You can't move to a previous control when only one control has had the focus.
Here is my code:
Private Sub Form_Load()
Dim stDocName As String
Dim Picture1, Picture2, Picture3, File1, File2, File3 As String
Me.txt_Picture1.Visible = True
File1 = Me.txt_Picture1.Text
Me.txt_Picture1.Visible = False
Me.Picture1.Picture = (GetDefaultFilePath & File1)