Results 1 to 3 of 3

Thread: How to Load a subForm by clicking a button on the Main Form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Location
    michigan
    Posts
    70

    How to Load a subForm by clicking a button on the Main Form

    Im having 2 forms Main Form and the Sub Form.

    The Sub Form on load retrieves data from the database and displays them in the text box.

    I added the sub Form to the Main Form.

    I have created a button in the Main Form on clicking it shud open the loaded Sub Form.

    I created a instance of sub Form and used SUBFORM.SHOWDIALOG() But this just opens the sub form instead of loading the data from the database.

    Is there anyway how I can load the Sub Form instead of just showing it by clicking a button on the Main Form.

    I appreciate ur help in advance

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    I dont see any problem with the way you have chosen, maybe there is another problem in your code that prevents the data being read from the database. In fact ShowDialog goes through initiating,loading and showing the form.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Location
    michigan
    Posts
    70
    Yeah there was some other problem. I fixed da problem now.

    THanx a lot for ur reply

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