Hello, I am a beginner to VB.NET.
Here is my question:
I currently have my SQL INSERT and UPDATE functions in my form. I'm trying
to clean up the code on my form, and use modules for database functions if
possible.
The problem is - When I cut and paste the SQL code into the module, the
references to my text boxes are no longer recognized. For ex:
UPDATE tbl1 SET Field1 = txtSomeField.text
txtSomeField.text is obviously not recognized, because this code is not in
the form.
Can someone suggest the best way to overcome this, so I can use modules for
my SQL statements?
Thanks
P