Results 1 to 4 of 4

Thread: open a new form from form 1

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2013
    Posts
    10

    open a new form from form 1

    Hi!
    i create two form 1) customer and 2) chedetail now i want to open form chedetail from customer form with custid
    and both table has relation with custid
    thanks

  2. #2
    Lively Member
    Join Date
    Apr 2011
    Posts
    75

    Re: open a new form from form 1

    For starters,

    Code:
    Dim oForm As chedetail
    oForm = New chedetail()
    oForm.Show()
    oForm = Nothing
    There are various ways to pass data into the new form.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2013
    Posts
    10

    Re: open a new form from form 1

    Quote Originally Posted by geek648 View Post
    For starters,

    Code:
    Dim oForm As chedetail
    oForm = New chedetail()
    oForm.Show()
    oForm = Nothing
    There are various ways to pass data into the new form.
    thanks for reply
    i am trying to add chqdetail in chqdetail form for customer how can i do that
    thanks

  4. #4
    Lively Member
    Join Date
    Apr 2011
    Posts
    75

    Re: open a new form from form 1

    Simplest way is to have a public variable in the chqdetail form, and set it (oForm.YourVar=whatever) to whatever you require before you show the form.

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