dbTalk Databases Forums  

Form/Subform Question. Scrollable?

comp.databases.ms-access comp.databases.ms-access


Discuss Form/Subform Question. Scrollable? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Salad
 
Posts: n/a

Default Form/Subform Question. Scrollable? - 03-29-2011 , 07:04 PM






I have an Invoice form and a InvoiceDetail continuous form. It's easy
to present the header/main data and the detail data as a form/subform.

Let's say we have 12 monthly invoices for year 2010. Is there a method
for presenting all 12 invoices as a form/subform (a form/subform for
each month) in a scrollable list (like a continuous form)?

Reply With Quote
  #2  
Old   
Jim Devenish
 
Posts: n/a

Default Re: Form/Subform Question. Scrollable? - 03-30-2011 , 06:04 AM






On Mar 30, 1:04*am, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:
Quote:
I have an Invoice form and a InvoiceDetail continuous form. *It's easy
to present the header/main data and the detail data as a form/subform.

Let's say we have 12 monthly invoices for year 2010. *Is there a method
for presenting all 12 invoices as a form/subform (a form/subform for
each month) in a scrollable list (like a continuous form)?
You can make the Invoice form continuous. When you select an
individual invoice its items will still show in the subform.

Reply With Quote
  #3  
Old   
David-W-Fenton
 
Posts: n/a

Default Re: Form/Subform Question. Scrollable? - 03-30-2011 , 11:16 AM



Salad <salad (AT) oilandvinegar (DOT) com> wrote in
news:Xd2dnfsmI90H7g_QnZ2dnUVZ_tGdnZ2d (AT) earthlink (DOT) com:

Quote:
I have an Invoice form and a InvoiceDetail continuous form. It's
easy to present the header/main data and the detail data as a
form/subform.

Let's say we have 12 monthly invoices for year 2010. Is there a
method for presenting all 12 invoices as a form/subform (a
form/subform for each month) in a scrollable list (like a
continuous form)?
The question sounds trivial, so I must be missing something
significant. Here's an example of how I've done it:

http://dfenton.com/DFA/examples/Subdatasheets.png

It uses subdatasheets, and works quite well, seems to me.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
  #4  
Old   
Salad
 
Posts: n/a

Default Re: Form/Subform Question. Scrollable? - 03-30-2011 , 07:59 PM



David-W-Fenton wrote:
Quote:
Salad <salad (AT) oilandvinegar (DOT) com> wrote in
news:Xd2dnfsmI90H7g_QnZ2dnUVZ_tGdnZ2d (AT) earthlink (DOT) com:


I have an Invoice form and a InvoiceDetail continuous form. It's
easy to present the header/main data and the detail data as a
form/subform.

Let's say we have 12 monthly invoices for year 2010. Is there a
method for presenting all 12 invoices as a form/subform (a
form/subform for each month) in a scrollable list (like a
continuous form)?


The question sounds trivial, so I must be missing something
significant. Here's an example of how I've done it:

http://dfenton.com/DFA/examples/Subdatasheets.png

It uses subdatasheets, and works quite well, seems to me.

Thanks much, David, for your reply and the link to a sample. I will
test on Friday.

The backend data is coming from ODBC sources so I hope that doesn't
cause a problem.

I noticed that the data for the main form must be a datasheet. Same for
the subdatasheet. I was hoping the main form didn't have to be
datasheet but this works as I best as I had hoped.

One question I have on the picture sample. I assume you dropped the
form/subdatasheet into a "container" form that had a blue green
backgound. But the space between the main/subdatasheet had a blueish
green tint as well. How the heck did you do that? Is it a setting in
the container form or is it a setting in the form/subdatasheet form?

Reply With Quote
  #5  
Old   
David-W-Fenton
 
Posts: n/a

Default Re: Form/Subform Question. Scrollable? - 04-01-2011 , 02:55 PM



Salad <salad (AT) oilandvinegar (DOT) com> wrote in
news:u-ydnftSncWYTw7QnZ2dnUVZ_r2dnZ2d (AT) earthlink (DOT) com:

Quote:
One question I have on the picture sample. I assume you dropped
the form/subdatasheet into a "container" form that had a blue
green backgound. But the space between the main/subdatasheet had
a blueish green tint as well. How the heck did you do that? Is
it a setting in the container form or is it a setting in the
form/subdatasheet form?
Nope. There are properties of the datasheet object that allow you to
set the color of the background. Remember, a datasheet is just a
FORM (check it out in the object browser in the VBE), so it has most
of the same properties as any form (and some that only apply to
datasheets).

In this case, it's actually a datasheet-specific property,
Me.DatasheetBackColor, that you set.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
  #6  
Old   
Salad
 
Posts: n/a

Default Re: Form/Subform Question. Scrollable? - 04-01-2011 , 07:13 PM



David-W-Fenton wrote:

Quote:
Salad <salad (AT) oilandvinegar (DOT) com> wrote in
news:u-ydnftSncWYTw7QnZ2dnUVZ_r2dnZ2d (AT) earthlink (DOT) com:


One question I have on the picture sample. I assume you dropped
the form/subdatasheet into a "container" form that had a blue
green backgound. But the space between the main/subdatasheet had
a blueish green tint as well. How the heck did you do that? Is
it a setting in the container form or is it a setting in the
form/subdatasheet form?


Nope. There are properties of the datasheet object that allow you to
set the color of the background. Remember, a datasheet is just a
FORM (check it out in the object browser in the VBE), so it has most
of the same properties as any form (and some that only apply to
datasheets).

In this case, it's actually a datasheet-specific property,
Me.DatasheetBackColor, that you set.

Thanks. Your solution worked like a champ.

Regarding the colors, I was able to right click on it and set the font
properties to bold and forecolor for the main form. I could set the
backcolor as well but I think I prefer the white background in this
instance.

Reply With Quote
  #7  
Old   
Tony Toews
 
Posts: n/a

Default Re: Form/Subform Question. Scrollable? - 04-03-2011 , 09:47 PM



On Tue, 29 Mar 2011 19:04:42 -0500, Salad <salad (AT) oilandvinegar (DOT) com>
wrote:

Quote:
I have an Invoice form and a InvoiceDetail continuous form. It's easy
to present the header/main data and the detail data as a form/subform.

Let's say we have 12 monthly invoices for year 2010. Is there a method
for presenting all 12 invoices as a form/subform (a form/subform for
each month) in a scrollable list (like a continuous form)?
Create another form/subform. Put the customer record on the main form
and the invoices on the subform. Then create a "drill down" button on
the subform to open your Invoice/Detail subform mentioned in your
first paragraph.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.