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  

carry records forward in sub-sub form



 
 
Thread Tools Display Modes
  #1  
Old December 13th, 2005, 12:41 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default carry records forward in sub-sub form

I have a main form FrmCarrier, containing a subform SubFrmRecording. This subform itself contains a continuous subform SubFrmExecutant.
These forms are linked through the fields CarrierID (FrmCarrierand SubFrmRecording) and RecordingID (SubFrmRecording and SubFrmExecutant) respectively.
The underlying tables are TblCarrier, TblRecording and TblExecutant. These have a cascading 1-many relationship with referential integrity enforced. All have autonumbering main keys.

When an object CmboExecutant in the SubFrmExecutant has the focus, what I want to accomplish with a button in the SubFrmExecutant form header is the following:

1. go back to the previous RecordingID (under the same CarrierID) and copy all the ExecutantID records that are there
2. come back to the next RecordingID
3. paste all the executantID records under that RecordingID.

I would prefer to use a DAO recordset to accomplish this. I fiddled around in vba but i am unable to get there.

Would any kind soul enlighten me ?

regards, Hannibal



--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

  #2  
Old December 13th, 2005, 02:01 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default carry records forward in sub-sub form

This article explains how to duplicate a record in a form and all its child
records in the subform:
Duplicate the record in form and subform
at:
http://allenbrowne.com/ser-57.html

If you put the button on the SubFrmRecording, it would duplicate the active
record in this form, and all the related records in your sub-subform.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"hannibal" wrote in message
...
I have a main form FrmCarrier, containing a subform SubFrmRecording. This
subform itself contains a continuous subform SubFrmExecutant.
These forms are linked through the fields CarrierID (FrmCarrierand
SubFrmRecording) and RecordingID (SubFrmRecording and SubFrmExecutant)
respectively.
The underlying tables are TblCarrier, TblRecording and TblExecutant. These
have a cascading 1-many relationship with referential integrity enforced.
All have autonumbering main keys.

When an object CmboExecutant in the SubFrmExecutant has the focus, what I
want to accomplish with a button in the SubFrmExecutant form header is the
following:

1. go back to the previous RecordingID (under the same CarrierID) and copy
all the ExecutantID records that are there
2. come back to the next RecordingID
3. paste all the executantID records under that RecordingID.

I would prefer to use a DAO recordset to accomplish this. I fiddled
around in vba but i am unable to get there.

Would any kind soul enlighten me ?

regards, Hannibal



 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dates in a listbox connected to a form... RusCat Using Forms 13 November 25th, 2004 02:31 AM
Open another form based on the same records as in the first form Anders Berlin New Users 1 October 1st, 2004 12:40 AM
Open another form based on the same records as in the first form Anders Berlin Using Forms 1 September 30th, 2004 09:57 AM
New records can't be seen rleblanc Using Forms 6 August 14th, 2004 02:43 PM
Searching Records Melissa Lambino New Users 6 July 20th, 2004 04:51 AM


All times are GMT +1. The time now is 10:20 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.