Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / October 2007

Tip: Looking for answers? Try searching our database.

Duplicating Form records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vorlon - 05 Oct 2007 10:36 GMT
Hello!

I have a formA with a sub form, and the main formA has a field named
PackingNo.
Now I would like to duplicate all records in formA and it sub form several
time, (exp. 5 times) and the number of time to be duplicated is written in a
textbox, then increase the PackingNo field value by 1, on each copy.

Your Helps is really "utopia” for me.
Allen Browne - 05 Oct 2007 11:47 GMT
If you want to programmatically duplicate the record in the form an in the
subform, you can use code like this:
   Duplicate the record in form and subform
at:
   http://allenbrowne.com/ser-57.html

If you just need to make 5 labels when the Quantity field reads 5, you can
do it without having to programmatically generate records. Here's how:
   Print a Quantity of a Label
at:
   http://allenbrowne.com/ser-39.html

Signature

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.

> I have a formA with a sub form, and the main formA has a field named
> PackingNo.
[quoted text clipped - 4 lines]
>
> Your Helps is really "utopia” for me.
Vorlon - 05 Oct 2007 12:52 GMT
Hi Allen
thanks for your help...but the link has page to display.

My Q is:
I would like to duplicate all records in formA and it sub form several
time, (exp. 5 times) and the number of time to be duplicated is written in a
textbox specified by the user, then code should increase the PackingNo
field value from 1 to the last, on each copy.
exple
like: record1  packingNo = 1
     record2  packingno = 2
  and....

> If you want to programmatically duplicate the record in the form an in the
> subform, you can use code like this:
[quoted text clipped - 16 lines]
> >
> > Your Helps is really "utopia” for me.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.