473,385 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How do I loop through subform data in Access/vba for exporting to Word

Hi,
I Really need help, can't find the answer anywhere.

I'm trying to export data from access to word. Mail merge doesn't have the features I need.

Ok, there is a form with a subform that when filled in saves the data to the tables and I've made a button that fires a vba script which exports the data to word. This works perfectly. The problem comes in with the subform. I don't know how to loop through the subform data related to that form entry.
I've got it to retrieve the first entry on the subform's table, How do I get it to loop through?

I can't get the upload to work, here's a link to a google drive folder if you'd like to see the database in action.
https://drive.google.com/open?id=0Bw...Dh2UWRMVllvYnM
Sep 7 '17 #1

✓ answered by NeoPa

Hi Gregory.

I'm not really sure where you're struggling but it may help to know how to reference a subform (Referring to Items on a Sub-Form) as well as that each bound form has both .Recordset & .RecordsetClone properties.

1 1454
NeoPa
32,556 Expert Mod 16PB
Hi Gregory.

I'm not really sure where you're struggling but it may help to know how to reference a subform (Referring to Items on a Sub-Form) as well as that each bound form has both .Recordset & .RecordsetClone properties.
Sep 7 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tim Graichen | last post by:
Hi! I have a subform (ShedTableSubForm) at the bottom of my MAIN form. I would like to do two things. 1) preview on screen a report (ShedReport) of the subform data the record currently...
0
by: Irwinsp | last post by:
Hi All, I have a form that needs to be placed on the web. The form contains a subform. The relationship from the form to the sub-form is 1 to many. Can this type of form be converted to a Data...
0
by: Irwinsp | last post by:
Hi All, I have a form that needs to be placed on the web. The form contains a subform. The relationship from the form to the sub-form is 1 to many. Can this type of form be converted to a Data...
4
by: svdh2 | last post by:
Dear All, I have lately strugled more and more with Access, what started as a simple database has brought me to the fundaments of Access. I need to transfer fields from various tables to a...
1
by: ashkash | last post by:
I have an access database which takes information from a user and then uses the mail merge functionality to merge the data into a word document. I have a lot of subforms in the access database which...
20
by: hufaunder | last post by:
I have 16-bit data that I want to display. In order to display it I compress a certain range of the input data into 8 bit (I need control over this). All seems to work ok except that it is dead...
0
by: Dariusz Tomon | last post by:
Hello I'm trying to do data access pages with subform (containing related data from a table with relationship with the main table). I wonder what is the best method - I tried to do it but all I...
1
by: dst393 via AccessMonster.com | last post by:
Is there any way to retrieve data from a Word document, in paragraph form, and import it into Access? -- Message posted via AccessMonster.com...
7
Dököll
by: Dököll | last post by:
Hey Gang! I am at work, will attempt to make it brief:-) Looks like I am unable to print subform data results. When the subform loads with the results I want, say from 9,000 records, I get 100...
1
by: deedeem | last post by:
Hi there, I am having trouble getting all my records to be placed into my WORD document from my ACCESS form. I have a form with a subform displayed and a control button that executes a macro. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.