this is my code
dim btn as button
dim rs as dataadapter
rs =" Select * from tbltable1 where status = 'unavailable'", con)
with rs
[i dont know what comes next but i tried this one]
btn.enabled = false
end with
[nothing's change]
[so i tried this one]
dim rs as dataadapter
rs =" Select * from tbltable1 where status = 'unavailable'", con)
with rs
[i dont know what comes next but i tried this one]
button1.enabled = false
button2.enabled = false
button3.enabled = false
button4.enabled = false
end with
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[the problem is even the status is available the button is still unclickable]
what is wrong with my code??
[I wanted to call a value in database[ms access]. I have a table named tbltable1 and there are three fields, i,d[autonumber], tablename[text] and status[text].
And i have 4 buttons. Each buttons represents the table name.
what i want to happen is,status [available, unavailable], when the status is = "unavailable"
the button needs to be enabled = false vice versa
please help me.:(
hi, i'm new here and i'm not an advanced user of vb.net. So i kinda need some help.]