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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

refresh form on open



 
 
Thread Tools Display Modes
  #1  
Old December 26th, 2006, 12:00 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 9
Default refresh form on open

I have a form that has a subform datasheet this form is used to enter
any problems that my customers have with any of there products
underwaranty.

Once i have entered the products that have broken under waranty in the
subform i have a button that i press that will create a new order.
then i press the button it creats the order number puts the correct
account number on as well.
I have a append query that runs and copys the items in the
frmWarratySubform frmOrderSubform

the problem i have is that when it run it does not display the products
in frmOrderSubform. The only way i can get them to aprear is by putting
a button on the frmOrder with VB code of me.refresh

This then works and dispays the data in the subform


I do not want the button on frmORder with me.refresh. I have tried
putting me.refresh on some of the open properties of the form but none
of this works

Can any one tell me where to put me.refresh so the data dispays
straight away or tell me another way of doing it


Thanks

  #2  
Old December 26th, 2006, 06:28 PM posted to microsoft.public.access.forms
Steve Schapel
external usenet poster
 
Posts: 1,422
Default refresh form on open

S.Dickson,

Do you mean that the frmOrder form is already open at the time?
If I understand you correctly.... Try this at the end of the code that
runs the Append Query:
Forms!frmOrder!frmOrderSubform.Requery

--
Steve Schapel, Microsoft Access MVP

wrote:
I have a form that has a subform datasheet this form is used to enter
any problems that my customers have with any of there products
underwaranty.

Once i have entered the products that have broken under waranty in the
subform i have a button that i press that will create a new order.
then i press the button it creats the order number puts the correct
account number on as well.
I have a append query that runs and copys the items in the
frmWarratySubform frmOrderSubform

the problem i have is that when it run it does not display the products
in frmOrderSubform. The only way i can get them to aprear is by putting
a button on the frmOrder with VB code of me.refresh

This then works and dispays the data in the subform


I do not want the button on frmORder with me.refresh. I have tried
putting me.refresh on some of the open properties of the form but none
of this works

Can any one tell me where to put me.refresh so the data dispays
straight away or tell me another way of doing it


Thanks

 




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 12:03 PM.


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