hello..
im working with vb.net...
can u guys help me solve this problem with some sample code
i want data from table Rate to display at combobox..
this is my code:
Private Sub AddArea_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
area = New AflexiArea
AddRate()
End Sub
Sub AddRate()
area = New AflexiArea
ReadSqlData("select (id, value) from rate")
While myReader.Read
ComboBox1.Items.Add(myReader.GetValue(0))
Exit While
End While
CloseSqlRead()
End Sub
but when i running the error msg said "ExecuteReaders required an open and Connection. The Connection current state is closed"
it's wrong with my code??
please help me..
thanks