Results 1 to 5 of 5

Thread: Is this possible?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    509

    Is this possible?

    I have a mshlexgrid that shows information from a recordset.

    Is it possible, when the user double clicks on a particular record on the mshflexgrid, it can go into my other form and display the full details about that record?

    i.e the mshflexgrid only provides selected information about a particular invoice. If i double click on it, it can go into my main form and show the full invoice via a procedure that i have called display (it shows the invoice).

    I hope i have been clear.

    Can this be done? if so how?

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    509

    Re: Is this possible?

    I have my unique field showing in the mshflexgrid (Invoice No). Can i somehow get that value from the mshflexgrid to then search through my database and show the full invoice?

  3. #3
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: Is this possible?

    absolutely...

    Let's say your invoice# is in col 5

    flexgrid.col = 0
    form2.show

    in the formload event...

    sql = "select * from <table> where invoice = " & trim(form1.flexgrid.text)

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    509

    Re: Is this possible?

    Wat happens if my form2 is already open? would i place it into a module and link the module to the form2?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    509

    Re: Is this possible?

    I managed to do it. I did use a module. Works a charm. I added it to my search procedure that i previously had.

    Cheers for that.

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