txgeekgirl1
Programmer
I do not know why I am struggling so hard with this. I have gone online and found examples and it keeps throwing me an error that
I have two Public Vars as Str: MyFile and MyStaff in the Module1.vb file
This code is in Form1.vb
These variables become the basis for a filter of MyFile. How do I clear that error and get this to work?
BTW - I know it's probably elementary - I code in VB about once a year and most of what we have are static mapped filecalls - so I am dumb here.
Code:
Value of type 'String' cannot be converted to 'System.Windows.Forms.TextBox'.
I have two Public Vars as Str: MyFile and MyStaff in the Module1.vb file
This code is in Form1.vb
Code:
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
MyFile = Me.txFileName.Text
MyStaff = Me.txStaffId.Text
MsgBox(MyFile)
'SaveDestFile()
End Sub
These variables become the basis for a filter of MyFile. How do I clear that error and get this to work?
BTW - I know it's probably elementary - I code in VB about once a year and most of what we have are static mapped filecalls - so I am dumb here.