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  

Forms with Subforms



 
 
Thread Tools Display Modes
  #1  
Old August 8th, 2007, 01:56 PM posted to microsoft.public.access.forms
SueK
external usenet poster
 
Posts: 47
Default Forms with Subforms

I have a main correspondence form. There is a relationship between the
correspondence and the location (asset number), as correspondence is always
about a location. Sometimes the correspondence will relate to work currently
being done at a particular location.

So my fields for the main form drawn from the underlying tables of locations
and correspondence a correspondence id, Asset Number , type of enquiry,
stage of enquiry, description (join on Asset number). Now due to popular
request, I am also attempting to include a sub form which populates whenever
the correspondence is in relation to a location where work is currently
taking place. This is drawn from records in the current job table, ( fields
there are job id, asset number (fk), current treatment, planned upgrade,
planned completion date, so there is also a join there on asset number.)
What is happening is that since adding the subform, every time I try adding
correspondence, I get a message telling me that it needs to update the
current job table as well. I have tried changing the relationships, but
despite manipulation of anything that will move, cannot get a situation as I
had hoped that the subform is there for information only. Any suggestions
please?
  #2  
Old August 9th, 2007, 08:32 PM posted to microsoft.public.access.forms
NetworkTrade
external usenet poster
 
Posts: 825
Default Forms with Subforms

will give my input since no one else has answered....though I am no MVP...

it seems like you have the correct parent/child relationship between the two
tables on the key field asset number...

and presuming you used the subform wizard to inset the current job table
then I believe your question boils down to; "a message telling me that it
needs to update the current job table "

I say this because if I understand you - when you select a record on the
main parent form it is displaying the correct child form record....and the
problem occurs when you attempt to close/leave the record...

my first thing would be to check whether your parent form is set to property
'Add Data'...Yes; because that would force it to be looking for a new record
to be added..
--
NTC


"suek" wrote:

I have a main correspondence form. There is a relationship between the
correspondence and the location (asset number), as correspondence is always
about a location. Sometimes the correspondence will relate to work currently
being done at a particular location.

So my fields for the main form drawn from the underlying tables of locations
and correspondence a correspondence id, Asset Number , type of enquiry,
stage of enquiry, description (join on Asset number). Now due to popular
request, I am also attempting to include a sub form which populates whenever
the correspondence is in relation to a location where work is currently
taking place. This is drawn from records in the current job table, ( fields
there are job id, asset number (fk), current treatment, planned upgrade,
planned completion date, so there is also a join there on asset number.)
What is happening is that since adding the subform, every time I try adding
correspondence, I get a message telling me that it needs to update the
current job table as well. I have tried changing the relationships, but
despite manipulation of anything that will move, cannot get a situation as I
had hoped that the subform is there for information only. Any suggestions
please?

 




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:48 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.