PC Review


Reply
Thread Tools Rate Thread

Problem Printing A record

 
 
Brian
Guest
Posts: n/a
 
      20th May 2010
Hello Experts

I have a problem with printing a record with a sub-form section.

I have a "Quotation" form I print and send to customers.

The form incorporates a "Product Detail" subform with a line by line
description of services and cost.

When I select and print the record, the Product Details are not always in
the same order as they appear in display. I have tried fiddling with Sorting
& Filters and sometimes I can get the record to print as it appears but I am
not sure what triggers the problem or the solution.

Here is a typical example:
Quotation
Sand Down And re-Hang Doors:
Court Room 1 £350
Court Room 2 £350
Court Room 3 £400
Court Room 4 £420

When Printed
Quotation
Court Room 4 £420
Sand Down And re-Hang Doors:
Court Room 1 £350
....etc

Dosen't appear to follow any particular pattern that I can see and worse it
seems random, some records print fine others get jumbled.

The databse has multiple users so perhaps someone is doing something they
shouldn't?

Would dearly appreciate your comments.
Brian



Court Room
 
Reply With Quote
 
 
 
 
Al Campagna
Guest
Posts: n/a
 
      20th May 2010
Brian,
> I have a problem with printing a record with a sub-form section.

I take it you developed a report to print the specific Quote?

How are your subform records sorted?
(According to your sample data... AlphaNum sorting is not indicated)
You say that they always "display" in the correct order... then that
sorting should work for your report too.

In reports, Sorting is handled through the Sorting & Grouping
dialog box, in report design mode. Sorting in the reports query is always
over-ridden by the S&G.

If each of the subform records had an autonumber ID field, then
sorting on that value would always insure that they sort in the order
they were entered. (another method would be to date & timestamp
each quote item entry, and sort on that)
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Brian" <(E-Mail Removed)> wrote in message
news:E55960B8-8054-4FAD-AC5F-(E-Mail Removed)...
> Hello Experts
>
> I have a problem with printing a record with a sub-form section.
>
> I have a "Quotation" form I print and send to customers.
>
> The form incorporates a "Product Detail" subform with a line by line
> description of services and cost.
>
> When I select and print the record, the Product Details are not always in
> the same order as they appear in display. I have tried fiddling with
> Sorting
> & Filters and sometimes I can get the record to print as it appears but I
> am
> not sure what triggers the problem or the solution.
>
> Here is a typical example:
> Quotation
> Sand Down And re-Hang Doors:
> Court Room 1 £350
> Court Room 2 £350
> Court Room 3 £400
> Court Room 4 £420
>
> When Printed
> Quotation
> Court Room 4 £420
> Sand Down And re-Hang Doors:
> Court Room 1 £350
> ...etc
>
> Dosen't appear to follow any particular pattern that I can see and worse
> it
> seems random, some records print fine others get jumbled.
>
> The databse has multiple users so perhaps someone is doing something they
> shouldn't?
>
> Would dearly appreciate your comments.
> Brian
>
>
>
> Court Room



 
Reply With Quote
 
 
 
 
Brian
Guest
Posts: n/a
 
      22nd May 2010
Al

My apologies for not replying earlier. I actually print from the record and
not a report and I was wrong to say that the sub-form detail remains in the
same order as originally typed I noticed by chance that the order had in fact
altered in record display mode. There is nothing in the table or query asking
for an order sort. There are only 4 field on the sub-form [Description],
[Price], [Quantity], [Total] (which is Calculated). I can't figure out which
field is taking precedence.

I think your suggestion to Auto ID each Line on the sub is a great way of
sorting the problem although I will look at going down the "Report" route
with sorting & grouping.

Thanks a lot for some very helpful pointers.
Brian

"Al Campagna" wrote:

> Brian,
> > I have a problem with printing a record with a sub-form section.

> I take it you developed a report to print the specific Quote?
>
> How are your subform records sorted?
> (According to your sample data... AlphaNum sorting is not indicated)
> You say that they always "display" in the correct order... then that
> sorting should work for your report too.
>
> In reports, Sorting is handled through the Sorting & Grouping
> dialog box, in report design mode. Sorting in the reports query is always
> over-ridden by the S&G.
>
> If each of the subform records had an autonumber ID field, then
> sorting on that value would always insure that they sort in the order
> they were entered. (another method would be to date & timestamp
> each quote item entry, and sort on that)
> --
> hth
> Al Campagna
> Microsoft Access MVP 2007-2009
> http://home.comcast.net/~cccsolutions/index.html
>
> "Find a job that you love... and you'll never work a day in your life."
>
> "Brian" <(E-Mail Removed)> wrote in message
> news:E55960B8-8054-4FAD-AC5F-(E-Mail Removed)...
> > Hello Experts
> >
> > I have a problem with printing a record with a sub-form section.
> >
> > I have a "Quotation" form I print and send to customers.
> >
> > The form incorporates a "Product Detail" subform with a line by line
> > description of services and cost.
> >
> > When I select and print the record, the Product Details are not always in
> > the same order as they appear in display. I have tried fiddling with
> > Sorting
> > & Filters and sometimes I can get the record to print as it appears but I
> > am
> > not sure what triggers the problem or the solution.
> >
> > Here is a typical example:
> > Quotation
> > Sand Down And re-Hang Doors:
> > Court Room 1 £350
> > Court Room 2 £350
> > Court Room 3 £400
> > Court Room 4 £420
> >
> > When Printed
> > Quotation
> > Court Room 4 £420
> > Sand Down And re-Hang Doors:
> > Court Room 1 £350
> > ...etc
> >
> > Dosen't appear to follow any particular pattern that I can see and worse
> > it
> > seems random, some records print fine others get jumbled.
> >
> > The databse has multiple users so perhaps someone is doing something they
> > shouldn't?
> >
> > Would dearly appreciate your comments.
> > Brian
> >
> >
> >
> > Court Room

>
>
> .
>

 
Reply With Quote
 
Al Campagna
Guest
Posts: n/a
 
      22nd May 2010
Brian,
>>I take it you developed a report to print the specific Quote?

That's why I asked that...
Printing a form is not a reliable Access function, in that it's not a
substitute
for a real report.
By the nature of tables, if there is no sorting called for in your
subform, then they
should always display in the ordfer they were entered. Not positive about
that,
I never had a table that didn't have some logical "sort" designed in.
The ID or Date/Time etc... field should do the trick for you...
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Brian" <(E-Mail Removed)> wrote in message
news:AF716818-8DCA-47A8-9376-(E-Mail Removed)...
> Al
>
> My apologies for not replying earlier. I actually print from the record
> and
> not a report and I was wrong to say that the sub-form detail remains in
> the
> same order as originally typed I noticed by chance that the order had in
> fact
> altered in record display mode. There is nothing in the table or query
> asking
> for an order sort. There are only 4 field on the sub-form [Description],
> [Price], [Quantity], [Total] (which is Calculated). I can't figure out
> which
> field is taking precedence.
>
> I think your suggestion to Auto ID each Line on the sub is a great way of
> sorting the problem although I will look at going down the "Report" route
> with sorting & grouping.
>
> Thanks a lot for some very helpful pointers.
> Brian
>
> "Al Campagna" wrote:
>
>> Brian,
>> > I have a problem with printing a record with a sub-form section.

>> I take it you developed a report to print the specific Quote?
>>
>> How are your subform records sorted?
>> (According to your sample data... AlphaNum sorting is not indicated)
>> You say that they always "display" in the correct order... then that
>> sorting should work for your report too.
>>
>> In reports, Sorting is handled through the Sorting & Grouping
>> dialog box, in report design mode. Sorting in the reports query is
>> always
>> over-ridden by the S&G.
>>
>> If each of the subform records had an autonumber ID field, then
>> sorting on that value would always insure that they sort in the order
>> they were entered. (another method would be to date & timestamp
>> each quote item entry, and sort on that)
>> --
>> hth
>> Al Campagna
>> Microsoft Access MVP 2007-2009
>> http://home.comcast.net/~cccsolutions/index.html
>>
>> "Find a job that you love... and you'll never work a day in your
>> life."
>>
>> "Brian" <(E-Mail Removed)> wrote in message
>> news:E55960B8-8054-4FAD-AC5F-(E-Mail Removed)...
>> > Hello Experts
>> >
>> > I have a problem with printing a record with a sub-form section.
>> >
>> > I have a "Quotation" form I print and send to customers.
>> >
>> > The form incorporates a "Product Detail" subform with a line by line
>> > description of services and cost.
>> >
>> > When I select and print the record, the Product Details are not always
>> > in
>> > the same order as they appear in display. I have tried fiddling with
>> > Sorting
>> > & Filters and sometimes I can get the record to print as it appears but
>> > I
>> > am
>> > not sure what triggers the problem or the solution.
>> >
>> > Here is a typical example:
>> > Quotation
>> > Sand Down And re-Hang Doors:
>> > Court Room 1 £350
>> > Court Room 2 £350
>> > Court Room 3 £400
>> > Court Room 4 £420
>> >
>> > When Printed
>> > Quotation
>> > Court Room 4 £420
>> > Sand Down And re-Hang Doors:
>> > Court Room 1 £350
>> > ...etc
>> >
>> > Dosen't appear to follow any particular pattern that I can see and
>> > worse
>> > it
>> > seems random, some records print fine others get jumbled.
>> >
>> > The databse has multiple users so perhaps someone is doing something
>> > they
>> > shouldn't?
>> >
>> > Would dearly appreciate your comments.
>> > Brian
>> >
>> >
>> >
>> > Court Room

>>
>>
>> .
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form code: how do I run code every time a record is "loaded" by going to next record, last record, etc. Dave R. Microsoft Access Macros 1 24th Jun 2005 07:37 PM
Update record - returns to the first record in the record set Kim Microsoft Access Forms 0 22nd Apr 2005 04:20 PM
Current Record Count, Previous Record #, Add New Record =?Utf-8?B?Um9iZXJ0IE51c3ogQCBEUFM=?= Microsoft Access Forms 0 15th Feb 2005 09:35 PM
Sub record not associated with main record when copy record button is used Ron V Microsoft Access Form Coding 0 21st May 2004 05:26 PM
I am trying to get a form to pick up the record data from a different record to this new record Thomas Simsion Microsoft Access Forms 4 10th Nov 2003 10:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:13 PM.