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  

stopping an unwanted requery



 
 
Thread Tools Display Modes
  #1  
Old May 9th, 2010, 09:42 PM posted to microsoft.public.access.forms
Kiers
external usenet poster
 
Posts: 13
Default stopping an unwanted requery

Hi All,

i have a main form based on a query that presents the user with a list
of customers (frmCustomers), The user is able to view/update the
customer's details by clicking the 'view' button, which calls another
form by the code;

DoCmd.OpenForm "frmCustomer", acNormal, , "ID = " & Me!
sfrCustomers.Form.Controls!ID, acFormEdit, acWindowNormal

My problem is that when the users finsihes with second form
(frmCustomer) and closes it, the frmCustomers form appears to requery,
when i actaully want it to stay on the same record that has just been
viewed / updated.

Any pointers on how this can be achieved will be appreciated.

Rgds

Kiers
  #2  
Old May 9th, 2010, 10:31 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default stopping an unwanted requery

There's no logical reason why closing a form would have any impact on any
other forms.

Do you have any code in the GotFocus event of the first form?

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/djsteele
(no e-mails, please!)



"Kiers" wrote in message
...
Hi All,

i have a main form based on a query that presents the user with a list
of customers (frmCustomers), The user is able to view/update the
customer's details by clicking the 'view' button, which calls another
form by the code;

DoCmd.OpenForm "frmCustomer", acNormal, , "ID = " & Me!
sfrCustomers.Form.Controls!ID, acFormEdit, acWindowNormal

My problem is that when the users finsihes with second form
(frmCustomer) and closes it, the frmCustomers form appears to requery,
when i actaully want it to stay on the same record that has just been
viewed / updated.

Any pointers on how this can be achieved will be appreciated.

Rgds

Kiers


 




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 10:26 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.