Results 1 to 7 of 7

Thread: Clicking button with selected databinded combobox

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    10

    Question 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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Clicking button with selected databinded combobox

    Welcome to the forums.

    Are you using VB6? VB.NET? Something else?

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    10

    Re: Clicking button with selected databinded combobox

    Whoops. Sorry about that. I'm using Visual Basic 2008 express edition.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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?

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    10

    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.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Clicking button with selected databinded combobox


  7. #7

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    10

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width