Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2021, 08:26 AM
njacobs njacobs is offline Creating a dynamic table pulling data in through data.dot file from database. Windows 10 Creating a dynamic table pulling data in through data.dot file from database. Office 2013
Novice
Creating a dynamic table pulling data in through data.dot file from database.
 
Join Date: Dec 2021
Posts: 3
njacobs is on a distinguished road
Default Creating a dynamic table pulling data in through data.dot file from database.

Hello all,

I am currently trying to create a dynamic table with word mail merge. I have data coming into vb code from a database, and that data is being sent to a "data.dot" file (where the text moves vertically rather than horizontally. Do not know what its called specifically).

From there the data is being loaded into a word template with merge values.

Does anyone know if this is possible? And if so, when moving sets of data that would populate a dynamic table, are the values sent in through an array, or do there need to be multiple different variables for each data set being passed in?



Thank you for your help.

-Njacobs
Reply With Quote
  #2  
Old 12-12-2021, 03:39 AM
Guessed's Avatar
Guessed Guessed is offline Creating a dynamic table pulling data in through data.dot file from database. Windows 10 Creating a dynamic table pulling data in through data.dot file from database. Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Yes, what you want to do is possible.

You haven't provided enough information to answer your other questions. If you are using VBA code then either an array or lots of variables can be used. If the data is coming from a database then perhaps a recordset from a sql query would make the most sense to use.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 12-13-2021, 11:15 AM
njacobs njacobs is offline Creating a dynamic table pulling data in through data.dot file from database. Windows 10 Creating a dynamic table pulling data in through data.dot file from database. Office 2013
Novice
Creating a dynamic table pulling data in through data.dot file from database.
 
Join Date: Dec 2021
Posts: 3
njacobs is on a distinguished road
Default

The data.dot files might be an in house thing honestly. Essentially we are calling our database to bring in certain values into the vb code, and from there the data is being moved into the "data.dot" file, which then moves the data into the template.

The data.dot file has a really weird format, where the variables being plugged into the template go vertically instead of horizontally. Not sure if this is a general standard, or if my company created this.

We actually have an in-house application that allows users to generate letters to be sent out. So that is the basis of the vb code.

Hope that helps clear things up.
Reply With Quote
  #4  
Old 12-13-2021, 09:16 PM
Guessed's Avatar
Guessed Guessed is offline Creating a dynamic table pulling data in through data.dot file from database. Windows 10 Creating a dynamic table pulling data in through data.dot file from database. Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

We can't tell you how your code works without seeing your code. What exactly are you asking for here?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #5  
Old 12-14-2021, 07:41 AM
njacobs njacobs is offline Creating a dynamic table pulling data in through data.dot file from database. Windows 10 Creating a dynamic table pulling data in through data.dot file from database. Office 2013
Novice
Creating a dynamic table pulling data in through data.dot file from database.
 
Join Date: Dec 2021
Posts: 3
njacobs is on a distinguished road
Default

Who is "we"? Got a mouse in your pocket mate?

Also I was just trying to elaborate more on my first post, because you said I did not provide enough information, but did not point me to what you did not understand.

What I am trying to get help for is moving data from vb code into a dynamic table in a MS Word template. I am moving data through merge fields. I need to know if I should move the data through some sort of array or just have multiple variables in the vb code.

For each "person" data being moved, there are multiple attributes that need to be filled into the table as well. So the more "persons" there are, the more rows I will need in the table. If there are only 4 people, I will need 4 rows. If there are 8 people, I will need 8 rows. And so on.

Further, what do I need to do in order to make the table dynamic. Is this something I would need to do in the vb code, or in the template? In the research I have done I have seen people put the data into excel, or put actual vb code in the template itself, among other things. I am wondering what the best way would be to go about doing this.

Thanks much!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a dynamic table pulling data in through data.dot file from database. Populate cells of a table with data from a MySQL database fufabi Word Tables 2 04-18-2019 08:25 PM
Pulling Unique Data from a Table A Certain Number of Times (Advanced) nath1235 Excel 3 09-14-2017 04:21 PM
Creating a dynamic table pulling data in through data.dot file from database. Excel 2013 Pulling data from 1 table to multiple sheets Justcallmeeesa Excel 2 04-14-2016 09:15 AM
Creating Dynamic Timeline in Powerpoint with data from Excel table Kostas_S PowerPoint 0 09-02-2015 03:25 AM
Using data entered in prompt to search database table BluRay Word 1 03-25-2011 01:47 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft