Results 1 to 3 of 3
  1. #1
    efreet29 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    5

    Duplicating records (please convert my psuedocode to VBA)

    I need to print a report on a watermarked paper. The watermarked paper has space for 3 short slips, and each slip has can hold 5 records. The 3 slips should be printing the same set of records and look the same. If I get more than 5 records to print, extra records should be printed on the next watermarked paper.

    The problem is I don't know how to use VBA I prepared psuedocode for my problem above. Can anyone convert this to VBA?

    Code:
    -InputRecords


    Sub DuplicateRecords
    ()

    NumRecords num(Records)
    Do While 
    NumRecords 0
    'Append First 5 Records to TempTable 3 times
    '
    Delete First 5 Records
    NumRecords 
    NumRecords 5
    Loop

    End Sub 
    Please help! If anyone has better code design, I'm all ears for that too.

  2. #2
    msoffice.vidyarthi is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Nov 2012
    Posts
    24
    1 ) It would be good if you explain it more clearly, what is the kind of input and what is the kind of output ur luking 4

    2 ) can you get some sample data which help us to come up with solution

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    This is essentially duplicate/continuation of https://www.accessforums.net/reports...age-30018.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. setting up a form for duplicating records
    By phineas629 in forum Forms
    Replies: 4
    Last Post: 10-26-2011, 02:24 PM
  2. Replies: 3
    Last Post: 10-14-2011, 08:52 AM
  3. Replies: 2
    Last Post: 04-07-2011, 10:15 AM
  4. duplicating records
    By kstyles in forum Queries
    Replies: 7
    Last Post: 12-31-2010, 02:31 PM
  5. Problem with "join" duplicating records
    By Zukster in forum Queries
    Replies: 0
    Last Post: 08-25-2009, 09:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums