I'm inputting a txtUserFilename from a textbox. That's the name I gave the
textbox in its properties.
Here's the code I have:
Private Sub cmdNext_Click()
txtUserFilename = Trim(txtUserFilename)
If txtUserFilename = vbNullString Then
MsgBox "You Must Enter a Valid Filename", , "Enter File Name"
txtUserFilename.SetFocus
Exit Sub
End If
If txtUserFilename = "Asset" Or "asset" Then MsgBox "You Must Enter a Valid USER Filename", , "Enter File Name"
txtUserFilename.SetFocus
Exit Sub
End If
End Sub
I'm getting a type mismatch on the line: If txtUserFilename = "Asset.....
I've tried txtUserFilename.txt and .value but that's not it.
Bookmarks