A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Form not opening correctly



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 07:53 AM posted to microsoft.public.access
Faraz Ahmed Qureshi[_2_]
external usenet poster
 
Posts: 40
Default Form not opening correctly

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

--
Thanx & Best Regards,

Faraz!
  #2  
Old March 18th, 2010, 09:40 AM posted to microsoft.public.access
Stefan Hoffmann
external usenet poster
 
Posts: 991
Default Form not opening correctly

hi Faraz,

On 18.03.2010 07:53, Faraz Ahmed Qureshi wrote:
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 --
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.