Hello,
I am a new to programming, trying to learn vb.net, so I apologize if my questions are very elementary or my terminology is incorrect. I am trying to format a query to an Oracle table based on user-selected radio buttons on a Windows form (i.e. the query will return different elements from the table based on the radio buttons selected). The query results will be placed in a listbox on the form. My thought was to make a Property containing my query like so:
Public ReadOnly Property SQL()
Get
Return "SELECT * from table1"
End Get
End Property
and then I have a sub that feeds this SQL property (containing the query) into an OracleConnection.
My problem is that I don't know how to customize that query depending on what radio buttons are selected by the user. Is a Property the best way to go about this, or is there some other way that may be better?
ANY help will be greatly appreciated. Thanks for your time.
I am a new to programming, trying to learn vb.net, so I apologize if my questions are very elementary or my terminology is incorrect. I am trying to format a query to an Oracle table based on user-selected radio buttons on a Windows form (i.e. the query will return different elements from the table based on the radio buttons selected). The query results will be placed in a listbox on the form. My thought was to make a Property containing my query like so:
Public ReadOnly Property SQL()
Get
Return "SELECT * from table1"
End Get
End Property
and then I have a sub that feeds this SQL property (containing the query) into an OracleConnection.
My problem is that I don't know how to customize that query depending on what radio buttons are selected by the user. Is a Property the best way to go about this, or is there some other way that may be better?
ANY help will be greatly appreciated. Thanks for your time.