I knew how to use combo box to read the database in Microsoft access, let say I have 7 option and I can make it into conbo box. But now I want the 7 option in the form of button (means got 7 button). Can anyone help ??

        While (acsdr.Read())
        End While
2 Years
Discussion Span
Last Post by David_64

Can you clarify what the button you want it to do and what are those 7 options and how you want to use them.


i mean the 7 option in combo box,if i double click the 5,then the text box will show the data in 5.
But now i would like to use the button instead the combo box. The 7 option will go into button,and click the button 5,will have same function with combo box.

Attachments 122.png 9.97 KB 12.png 9.69 KB

You can add buttons dynamically and add handler with them to search the appropriate record from database.
The textproperty of the button should be acsdr("tableno").
After clicking the button, serch records on basis of the text property of the button or sender.
Hope it can help you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.