On Wed, 2 Jul 2008 02:27:01 -0700, Nylex wrote:
At the moment the field is set to OrderID
When I set it to ProductID only one item prints out
:
On Tue, 1 Jul 2008 19:59:00 -0700, Nylex wrote:
I have a Main Form which has the clients Name and Address and A
subform which
has the Product and the price we are quoting them
I then have a report which I print out for handing to the client -
but I can
not get it to sort by the description when it prints out
What do I alter to make it sort , the Main form - the subform or the
report
The main form and the subform are linked and the report only prints
out the
current quote that is loaded
The place to sort a report is in the Report's Sorting and Grouping
dialog.
in Report Design View, click on
View + Sorting and grouping.
Enter the name of the field, or an expression, in the upper left
column. Set it to Ascending or Descending in the right column.
I hope that the actual client's name field is not [Name].
Name is a reserved Access/VBA/Jet word and should not be used as a
field name.
For additional reserved words, see the Microsoft KnowledgeBase article
for your version of Access:
109312 'Reserved Words in Microsoft Access' for Access 97
209187 'ACC2000: Reserved Words in Microsoft Access'
286335 'ACC2002: Reserved Words in Microsoft Access'
321266 'ACC2002: Microsoft Jet 4.0 Reserved Words'
For an even more complete list of reserved words, see:
http://www.allenbrowne.com/AppIssueBadWord.html
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
This post doesn't make any sense to me.
Your original post says you have a report and you wish to sort it
according to description (i.e. "to sort by the description when it
prints out ").
Here you'r telling us that you are sorting according to ProductID
(which doesn't sound like a description field to me) and haven't given
any further information. Sorting in a report has no effect on the data
returned in the report, other than in how the data is sorted and/or
grouped.
If by sorting the report you really mean to "filter the report",
you'll have to use a different method and give us more useful
information. You stated originally that the report did return just the
record shown on the form. Sorting and Grouping will not affect that.