Updating a Word Table

Frank123

Registered User.
Local time
Today, 10:49
Joined
Jun 29, 2016
Messages
31
Hi, I'm new to VBA and can use some help. I hope my explaination is clear. By a press of a button on a form, information in an Access table gets inserted into a Word table in a Word document at a bookmark. But there are times the Access table may need to be revised where information is changed, or rows are added/deleted. After that occurs, when the revised Access table get re-inserted onto the Word table, information is duplicated or rows are not deleted. Apparently, the Word table is not being updated which is where I need help. Is there a way to update the Word table to show the revised information or row changes? I thought about deleting all the rows in the Word table, but keep the first row with the bookmark, before the revised information is re-inserted. Any help would be greatly appreciated...
 
Since this is an Access forum you probably want to post your code so people can run it and understand what you mean.

If your original code created the table at the bookmark, but now the table isn't updating at all, my guess is that the bookmark was replaced by the table you inserted originally. There's a toolbar command to view bookmarks. Check that it's still there.

Normally, you would have a 'master' file and create the document from scratch each time, rather than constantly updating the same file. That way you ensure your bookmarks and formatting are aways intact.
 

Users who are viewing this thread

Back
Top Bottom