A
admin
Hello everybody.
I am using Word 2003.
I've ran into a problem trying to print more than one table in the
document.
Here is the picture ( hopefully I'll be able to express it correctly
=) ):
----------------------
- I have a DB from which I'm retrieving some data (cars, for example).
I can retrieve anywhere from 0 to however many of those that come back
after executing my query.
- I am trying to automate the process of adding table(s), separated by
a blank line if there are more than one, to a .doc file. That is
happening (theoretically) in a while loop (While Dr.Read ...)Each
table contains whatever the data is. For example, if it's a car, each
table contains, say, make, model, year, color and vin - some data from
my DB.
Here is what I get:
--------------------
I can add a table, and insert data. The problem is that it's one table
and any attempt of creating a new one fails. I don't know how many
tables I'll end up having in the document, so I cannot statically
create them. When I'm trying to create a new table, the rows are just
added to the end of already created table, or (when I do something
even dumber), nest inside of the first cell.
I've tried numerous ideas that I've got from other posts in here, but
none worked for me. I've been trying to do it for a week now. I would
really appreciate any advice. Thanks in advance for your help and
guidance!
I am using Word 2003.
I've ran into a problem trying to print more than one table in the
document.
Here is the picture ( hopefully I'll be able to express it correctly
=) ):
----------------------
- I have a DB from which I'm retrieving some data (cars, for example).
I can retrieve anywhere from 0 to however many of those that come back
after executing my query.
- I am trying to automate the process of adding table(s), separated by
a blank line if there are more than one, to a .doc file. That is
happening (theoretically) in a while loop (While Dr.Read ...)Each
table contains whatever the data is. For example, if it's a car, each
table contains, say, make, model, year, color and vin - some data from
my DB.
Here is what I get:
--------------------
I can add a table, and insert data. The problem is that it's one table
and any attempt of creating a new one fails. I don't know how many
tables I'll end up having in the document, so I cannot statically
create them. When I'm trying to create a new table, the rows are just
added to the end of already created table, or (when I do something
even dumber), nest inside of the first cell.
I've tried numerous ideas that I've got from other posts in here, but
none worked for me. I've been trying to do it for a week now. I would
really appreciate any advice. Thanks in advance for your help and
guidance!