-
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