PC Review


Reply
Thread Tools Rate Thread

Display a control in the last record of a continuous subform?

 
 
Andrew
Guest
Posts: n/a
 
      12th Jul 2007
Hi all

A quick question which I've not been able to solve from trawling the
web.

Is it possible to have a control in the detail section of a form set
to a default view of "Continuous" which only appears on the last
record?

I'm thinking of having a form with a subform, and would like the
subform to list related records, but have a "+" button to allow adding
a new record. I know I could put it in the form footer, but that can
be quite a way away from the data, if there are only one or two
records showing, so I wondered if there's a way of controlling the
visible property with (presumably) some reference to the current
record's position within the recordset. And which event would need to
trigger this code?

Thanks in advance.

Regards
Andrew

 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      12th Jul 2007
Consider either putting it in the subform header directly under a set of
labels; or using 2 subforms, preferably the last record one as a read only
so there can be no page locking conflict.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Andrew" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all
>
> A quick question which I've not been able to solve from trawling the
> web.
>
> Is it possible to have a control in the detail section of a form set
> to a default view of "Continuous" which only appears on the last
> record?
>
> I'm thinking of having a form with a subform, and would like the
> subform to list related records, but have a "+" button to allow adding
> a new record. I know I could put it in the form footer, but that can
> be quite a way away from the data, if there are only one or two
> records showing, so I wondered if there's a way of controlling the
> visible property with (presumably) some reference to the current
> record's position within the recordset. And which event would need to
> trigger this code?
>
> Thanks in advance.
>
> Regards
> Andrew
>



 
Reply With Quote
 
Andrew
Guest
Posts: n/a
 
      12th Jul 2007
On Jul 12, 3:17 pm, "Arvin Meyer [MVP]" <a...@m.com> wrote:
> Consider either putting it in the subform header directly under a set of
> labels; or using 2 subforms, preferably the last record one as a read only
> so there can be no page locking conflict.
> --
> Arvin Meyer, MCP, MVPhttp://www.datastrat.comhttp://www.mvps.org/accesshttp://www.accessmvp.com
>
> "Andrew" <andrewmricha...@yahoo.co.uk> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > Hi all

>
> > A quick question which I've not been able to solve from trawling the
> > web.

>
> > Is it possible to have a control in the detail section of a form set
> > to a default view of "Continuous" which only appears on the last
> > record?

>
> > I'm thinking of having a form with a subform, and would like the
> > subform to list related records, but have a "+" button to allow adding
> > a new record. I know I could put it in the form footer, but that can
> > be quite a way away from the data, if there are only one or two
> > records showing, so I wondered if there's a way of controlling the
> > visible property with (presumably) some reference to the current
> > record's position within the recordset. And which event would need to
> > trigger this code?

>
> > Thanks in advance.

>
> > Regards
> > Andrew- Hide quoted text -

>
> - Show quoted text -


Hmmm.. Okay, Thanks.

On a related issue, is there a way of having controls visible or not
on a continuous subform based on whether a field value for that record
is null?

Thanks again

Andrew

 
Reply With Quote
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      14th Jul 2007

"Andrew" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> On a related issue, is there a way of having controls visible or not
> on a continuous subform based on whether a field value for that record
> is null?


You can change formatting conditionally on a continuous form (starting with
Access 2000) but not the properties, like the Visible property. For
conditional formatting, open the form in design view and choose it from the
format menu.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


 
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
Need to display record number on continuous subform =?Utf-8?B?RGVubmlz?= Microsoft Access Form Coding 3 19th May 2006 10:56 PM
Problem: Display Record # of # on continuous subform? =?Utf-8?B?VGVjOTI0MDc=?= Microsoft Access Forms 2 21st Jan 2006 04:10 AM
Display a control based on new record in subform Bill R via AccessMonster.com Microsoft Access Forms 2 20th Dec 2005 06:05 PM
Last record on continuous subform =?Utf-8?B?QWxlYw==?= Microsoft Access VBA Modules 5 17th Aug 2005 02:41 AM
Continuous Subform - Move From Record To Record MikeC Microsoft Access Form Coding 1 2nd Feb 2005 09:27 PM


Features
 

Advertising
 

Newsgroups
 


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