Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Printing selected rows from subform

16 views
Skip to first unread message

gor...@hotmail.com

unread,
Nov 20, 2009, 5:21:21 AM11/20/09
to
I have a form with 2 subforms – one displaying invoice headers, the
other showing the relevant invoice item lines for the selected
invoice header. In the form header, I have a combo box with a list of
customers. When I select a customer, subform1 shows the invoices for
that customer and subform2, the invoice lines.

I am looking for a way to be able to highlight selected invoice
headers, then print from a button on the form, but I am struggling to
think of the right approach.

I thought of putting a new field in the invoice headers table (Print,
format Yes/No), then using that on the form to tick the selected
invoices and use as the basis of code for the print. On completion of
the print, the Print flag would be reset.
But this won’t work, as the data source of the Invoice Headers subform
includes fields from other tables and tells me it is not updateable.

Can anyone suggest a way of achieving this?

Gordon

Marshall Barton

unread,
Nov 20, 2009, 9:03:14 AM11/20/09
to
gor...@hotmail.com wrote:


You might be able to use Albert's Multi Select stuff at:
http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html

--
Marsh

gor...@hotmail.com

unread,
Nov 20, 2009, 2:01:24 PM11/20/09
to
On Nov 20, 2:03 pm, Marshall Barton <marshbar...@wowway.com> wrote:
> Marsh- Hide quoted text -
>
> - Show quoted text -

Thanks Marsh, my subform is a datasheet but I'll check out the the
code you suggested which is designed for a continuos form.

Gordon

Marshall Barton

unread,
Nov 21, 2009, 12:14:29 PM11/21/09
to
gor...@hotmail.com wrote:

>On Nov 20, 2:03�pm, Marshall Barton wrote:
>> gors...@hotmail.com wrote:
>> >I have a form with 2 subforms � one displaying invoice headers, the
>> >other �showing the relevant invoice item lines for the selected
>> >invoice header. In the form header, I have a combo box with a list of
>> >customers. �When I select a customer, �subform1 shows the invoices for
>> >that customer and subform2, the invoice lines.
>>
>> >I am looking for a way to be able to highlight selected invoice
>> >headers, then print from a button on the form, but I am struggling to
>> >think of the right approach.
>>
>> >I thought of putting a new field in the invoice headers table (Print,
>> >format Yes/No), then using that on the form to tick the selected
>> >invoices and use as the basis of code for the print. On completion of
>> >the print, the Print flag would be reset.
>> >But this won�t work, as the data source of the Invoice Headers subform
>> >includes fields from other tables and tells me it is not updateable.
>>
>> You might be able to use Albert's Multi Select stuff at:http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html
>>
>

>Thanks Marsh, my subform is a datasheet but I'll check out the the
>code you suggested which is designed for a continuos form.


Changing a datasheet form to a continuous form is no big
deal and continuous forms have many more features you an
use. I have never used a dataheet form in a real
application.

--
Marsh

0 new messages