Clicking button with selected databinded combobox
The title is weird I know. I didn't know what else to put. I'm designing a program for a possible future business (sales) of mine. On the main screen I have 2 comboboxes linked to an SQL database along with 2 buttons. I have a second screen that has several textboxes, also linked to the database. Now this is where I get lost. What I would like to happen is when I choose a "Customer Name or #" in one of the comboboxes on the main screen and click the button, I would like their "information" to show up on the 2nd screen. I have 2 more questions but they aren't as big a concern for me as this issue is. Any and all help is greatly appreciated.
Re: Clicking button with selected databinded combobox
Welcome to the forums. :wave:
Are you using VB6? VB.NET? Something else?
Re: Clicking button with selected databinded combobox
Whoops. Sorry about that. I'm using Visual Basic 2008 express edition.
Re: Clicking button with selected databinded combobox
I would suggest forgetting about the databinding and doing everything through code.
What you describe is a very, very, simple SQL SELECT query. Are you familiar with writing SQL?
Re: Clicking button with selected databinded combobox
Unfortunately no. I've only been using VB2008 for about 1.5 months. Yet i'm open for something new.
Re: Clicking button with selected databinded combobox
Re: Clicking button with selected databinded combobox
What's described there is what I sort of have on the 2nd form. When I dragged the table's onto the form, it added the BindingNavigator which had all of the back and forward buttons. It doesn't say anything about opening the 2nd form with the button click on the first page. Sorry if I'm being confusing. I still don't get a lot of things pertaining to VB.