Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populating MS Word table from form

Status
Not open for further replies.

cyberbob999

Technical User
Jun 26, 2003
23
US
I am trying to fill in a table in MS Word using a recordset from a query (SurvQuery). SurvQuery has the following fields: [comment], [cause], [action] and [date]. The table has only the 4 columns: one for each of the above fields. There is a variable number of rows depending on how many records are in the query (ie one row for each record)

I have been able to create a bookmark in the first cell and write [comment] to that cell. What I want to do is tab over to the next cell and write [cause] and keep "tabing" /writing until all of the records have been entered into the table (even at the end of the record, a tab should put me back at the beginning of the next row in the table). But, I am unable to do this. I have tried using the chr(9) (the horizontal tab character) but this just inserts a tab into the selected cell, it doesn't actually tab over to the next cell. It seems like there should be an easy way to do this, but I cannot find it. Any ideas?

Thanks in advance...
 
WORD and ACCESS use bookmarks to transfer code f rom ACCESS to WORD. And iin a sense, WORD does not work with forms. It works with the tables and/ or queries that underly the forms. This is a slight diff that trips up many.


Rollie E
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top