Form not opening correctly

  • Thread starter Faraz Ahmed Qureshi
  • Start date
F

Faraz Ahmed Qureshi

If a new entry is inserted in a form (namely USERS) 's combobox (Which is
based upon another table) I have the other table based form be opened,
however, after inserting the new entry, I want the USER form's combobox
(Branch_Name) be updated and that's why I have inserted the following code so
as to have the original form be closed and reopened for the combobox be
refreshed.

But the form USER upon being reopened has all the controls presented only as
a picture and none of the buttons be working???

Private Sub FORM_CLOSE()
If (SysCmd(acSysCmdGetObjectState, acForm, "User") And acObjStateOpen)
<> False Then
SendKeys "{ESC}", True
DoCmd.Close acForm, "User"
DoCmd.OpenForm "User"
End If
End Sub
 
S

Stefan Hoffmann

hi Faraz,

If a new entry is inserted in a form (namely USERS) 's combobox (Which is
based upon another table) I have the other table based form be opened,
however, after inserting the new entry, I want the USER form's combobox
(Branch_Name) be updated and that's why I have inserted the following code so
as to have the original form be closed and reopened for the combobox be
refreshed.
Take a look at

http://msdn.microsoft.com/en-us/library/bb243765.aspx
http://allenbrowne.com/ser-27.html


mfG

mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top