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  

Form just opened doesn't see data entered in previous form



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2010, 11:34 PM posted to microsoft.public.access.forms
BradMowers
external usenet poster
 
Posts: 1
Default Form just opened doesn't see data entered in previous form

I have one form displaying data from an organizations table (name and address
of organizations) with a subform displaying data from a contacts table (name,
address, organization phone, etc.).
The second form displays data from the contacts table with a subform
displaying data from the organizations table. When I enter an organization
in the first form and a contact in the subform of this first form then open
the second form (with a button on this form), the data entered in the first
form is not available. The data is present in the underlying tables but a
search in the organizations name field does not find the data entered in the
first form. How can I get the second form to look at the two tables before it
opens to make the data available? What happens now, of course, is that the
user, upon opening the second form and not finding the data they entered in
the first form, re-enters data thinking their entries "didn't stick".

  #2  
Old May 29th, 2010, 12:40 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Form just opened doesn't see data entered in previous form

Make sure you save the data just entered in the first form before you open
the next form.
On the button that opens the next form, put this code before the code that
opens the next form.

If Me.Dirty = True Then
Me.Dirty = False
End If
'here, put the code to open the next form


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"BradMowers" u60424@uwe wrote in message news:a8b302de3c5a2@uwe...
I have one form displaying data from an organizations table (name and
address
of organizations) with a subform displaying data from a contacts table
(name,
address, organization phone, etc.).
The second form displays data from the contacts table with a subform
displaying data from the organizations table. When I enter an
organization
in the first form and a contact in the subform of this first form then
open
the second form (with a button on this form), the data entered in the
first
form is not available. The data is present in the underlying tables but a
search in the organizations name field does not find the data entered in
the
first form. How can I get the second form to look at the two tables before
it
opens to make the data available? What happens now, of course, is that the
user, upon opening the second form and not finding the data they entered
in
the first form, re-enters data thinking their entries "didn't stick".



 




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 06:56 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.