473,385 Members | 1,661 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.

Word-like table in Access

Mo
I am trying to produce an Access report which behaves like a two
column table in Word. In other words each cell in column 1 contains a
label and each cell in column 2 contains data from a different text
field from a query and the cells expand or contract according to the
size of the text field.

I have tried "Can Shrink" but this leaves gaps and "Can Grow" but this
seems to cause the cells to overlap and then Access throws page breaks
in an unpredictable manner. Also "Can Shrink" and "Can Grow" do not
apply to labels, but I guess I can find a way round this.

Is there a solution to this? Otherwise, I think I will have to resort
to a fixed format, sizing the cells for what I estimate to be the
maximum field size.

Any ideas most gratefully received .

Apr 24 '07 #1
2 9233
"Mo" <ma**********@hotmail.comwrote
I am trying to produce an Access report which
behaves like a two column table in Word.
As you have discovered, Access is not Word.

Data for Word tables is entered manually or programmatically into the
Tables, and that is where it exists (with possible exceptions). And all the
adjacent cells in a Word table adjust together for height as the amount of
data changes.

Data in Access is stored in Tables and formatted, at execution time, for
display with Reports. The CanGrow and CanShrink properties are for
individual Controls, and for the Section in which those Controls reside.
And, as you have discovered, though they are "individual" to each TextBox
Control, those controls are affected by adjacent Controls, and may work in
unexpected ways if they touch each other.

And, it is not clear how the data is stored that you want to display. What
you describe could be for Fields within each Record, or it could be for
Records within the Database -- I'm assuming the data you want in the Label
Controls is identifying data for the adjacent data, but other than that,
don't know its source.

I am not certain there is a reliable way to do exactly what you want, but
unless we know what data you are trying to display and how it is stored, I'm
reasonably certain no one is going to be able to make any worthwhile
suggestions.

One suggestion that occurs to me is to use the excellent formatting features
that Access does provide, and not insist that the Reports be identical to
Word Tables. Another would be to use COM Automation to Control Word, and
create the "Report" with Word. If the data you want in the Tables is in
consecutive Records, perhaps using a Report embedded in a Subreport Control
would be useful.

Please clarify regarding the data, and where it is stored. Maybe someone can
be of help.

Larry Linson
Microsoft Access MVP


Apr 25 '07 #2
"Mo" <ma**********@hotmail.comwrote in message
news:11**********************@s33g2000prh.googlegr oups.com...
>I am trying to produce an Access report which behaves like a two
column table in Word. In other words each cell in column 1 contains a
label and each cell in column 2 contains data from a different text
field from a query and the cells expand or contract according to the
size of the text field.

I have tried "Can Shrink" but this leaves gaps and "Can Grow" but this
seems to cause the cells to overlap and then Access throws page breaks
in an unpredictable manner. Also "Can Shrink" and "Can Grow" do not
apply to labels, but I guess I can find a way round this.

Is there a solution to this? Otherwise, I think I will have to resort
to a fixed format, sizing the cells for what I estimate to be the
maximum field size.

Any ideas most gratefully received .
Try using MailMerge to populate a Word document so you can format it in Word
as you want it.

Keith.
www.keithwilby.com
Apr 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Martin Lucas-Smith | last post by:
I am trying to use PHP's COM support to open a URL from within MS Word then save the document. I am using PHP5.0.3/Apache2/WindowsXP. phpinfo() confirms that COM support is enabled. ...
5
by: jester.dev | last post by:
Hello, I'm learning Python from Python Bible, and having some problems with this code below. When I run it, I get nothing. It should open the file poem.txt (which exists in the current...
10
by: Case Nelson | last post by:
Hi there I've just been playing around with some python code and I've got a fun little optimization problem I could use some help with. Basically, the program needs to take in a random list of no...
8
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and...
8
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName =...
1
by: beanie | last post by:
i am a c programming beginner and i am trying to Create a concordance of Word Count for a text File in c programming but my code isn't working.please can u help me out.here is my code: #include...
2
by: beanie | last post by:
i am a beginer in c programming and i am trying to Create a Concordance of Word Count for a Text File but my code is not working.pls can anyone helpme out.here is my code: #include <stdio.h>...
5
by: alivip | last post by:
How can I get every Token (word) and PreviousToken(Previous word) From multube files and frequency of each two word my code is trying to get all single word and double word (every Token (word) and...
1
by: dittytwo | last post by:
Hi there The below code works if you don't try to do anything to the word document which is great (Not :D) I am having problems with the context command both text (i.e initial document with no...
1
by: berky | last post by:
hello my wonderful internet users! I have been assigned a simple word wrap program. I think I've gotten so wrapped up in the method I'm trying to implement, but it's just not coming together. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.