Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3941132
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:30:14+00:00 2026-05-20T00:30:14+00:00

I have a report template in Word that pulls tables from an Access 2007

  • 0

I have a report template in Word that pulls tables from an Access 2007 database. The tables should be exactly structured as they should appear in the report since we want to do a minimal amount of post-processing a formatting after updating the fields in the template.

In one step I use some VBA and a DAO.RecordSet to add a TOTAL row to the bottom of the table. The last bit there under “Add the total row” is where the row is added.

I want this row to be the LAST row in the table so when we update the fields in the Word report we don’t have to move it around. About 90% of the time it works all the time 🙂 but occasionally it will put the Total row at the top. I’m not sure how to force it to the bottom of the table. Any hints or workarounds?

I’ve found a SQL statement is even worse, it almost always adds the total row to the top.

Thanks!

'Add the total row.
rs1.MoveLast
rs1.AddNew
rs1.Fields(fname) = "Total"
rs1.Fields("Frequency") = TotalSum
rs1.Fields("Percent") = "100.0%"
rs1.Update

rs1.Close
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:30:15+00:00Added an answer on May 20, 2026 at 12:30 am

    In a relational database, there is no such thing as first or last, only an order that you impose with a field on which to sort. This is often an ID or date. Add a suitable field and then sort by that field when extracting the data. When adding a record, make sure it fits in the sequence you want by updating the sort field.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a report in MS Access where the underlying data in the tables
I have a report that renders data returned from a stored procedure. Using profiler
We have a service that generates a report (using word templates and a 3rd
I have a Excel Workbook that I use as a report template. I change
I am creating a xls report from template that uses data obtained from the
I have a report in SSRS 2005 that's based on a query that's similar
I have a report that uses a TChart that I am maintaining. One of
I have a report in SQL Server Reporting Services (SSRS) that I'd like to
I have a report that is used by a windows service and a form
I have two report parameters that were set up automatically when I created their

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.