Results 1 to 1 of 1

Thread: Refreshing a form

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Location
    Milton Keynes UK
    Posts
    27

    Refreshing a form

    OK This is really frustrating me.

    My application starts by checking if there is a default user. If not, a form opens (dialog) which adds a new user. On pressing the add user button, that form closes.

    I then need to refresh the original form which i tried to do through a sub which didn't work. If I have the same code as a button press on the main form it works fine. HOwever, I don't want to do that - I want it to refresh automatically when the dialog form closes. I've tried .refresh, .activate etc

    I just don't understand why it works if i press a button on the form but not if i have a method that runs it!!!!!

    Sub ReturnfromMain
    DsProfile1.Clear()
    OleDbDataAdapter1.Fill(DsProfile1)
    end sub


    John
    Last edited by tattenhoe; Sep 18th, 2002 at 09:44 AM.

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