A bit long pls bear with it.
Dim memName AsString
'Code to bind data to the text boxes
PublicSub BindData(ByVal mname AsString)
conn = New SqlConnection()
selectcmd = New SqlCommand()
selectda = New SqlDataAdapter()
conn.ConnectionString = strng
'Selecting member id
I understand that I can use the following code to get the value of the chosen item from a combo box (windows application) i.e
Dim memName as String = cmbMembers.Text
But if the user chooses another value after his first choice the above code doesn't work.
I have 2 text boxes which...
I am new to VB and I am trying to create a simple program in VB.NET in VS.NET 2005. I am just trying to retrieve some details from the Products Table in the Northwind database. But i keep hitting the following error
"An attempt to attach an auto-named database for file C:\Program...