Results 1 to 5 of 5
  1. #1
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,191

    Split Resordest

    Hi all, a bit of a long shot but if this is achievable, splitting a recordset into 2 recordsets if the 1st recordset has a count over 24 lets say rs1 and rs2

    If rs1 count has got ie: 36 records, can i split the 1st 24 records of rs1 and update excel sheet1 and set the remainder of the records 25 to 36 to rs2 then onto Excel sheet2 ??



    Reason being, I can border a excel template and set to print 1 page wide by 1 page tall on each sheet

    Thank you all

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    You could use SELECT TOP 24 … and an unmatched query based on that against all records for the rest.
    But what if there are more than 48?
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    why do you need to do that? - why not just format the excel printer to print a range where a page is 24 rows high? presumably you need headers as well?

  4. #4
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,191
    Hi Colin, thank for your reply, 48 to 72 goes onto worksheet 3

    Kindest

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Can you see why I asked about >48?
    I think you need a different solution such as that suggested by Ajax.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 3
    Last Post: 08-01-2017, 01:14 PM
  2. Replies: 3
    Last Post: 11-03-2015, 11:19 PM
  3. Get split form behaviours without using a split form
    By SyntaxSocialist in forum Queries
    Replies: 2
    Last Post: 04-12-2013, 11:56 AM
  4. Split Name
    By Blessy clara in forum Access
    Replies: 2
    Last Post: 05-03-2011, 03:12 PM
  5. ULS gone after split.
    By evander in forum Database Design
    Replies: 3
    Last Post: 07-06-2010, 11:49 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