PC Review


Reply
Thread Tools Rate Thread

Command button on a continuous form

 
 
Jac Tremblay
Guest
Posts: n/a
 
      26th Apr 2010
Hi,
I have a subform that lists all the records linked to the main form's
record. Naturally, there is a new record at the end of the list. I put a
command button on that subform so that the user can edit the corresponding
record. But the problem is that all the command buttons are enabled (on every
single row, even the new record row). I would like to enable only the one
occurrence that is on the selected record.
Is that possible?
Thanks.
--
Jac Tremblay
 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      27th Apr 2010
No, what you probably need to do is to put the command button in the form's
geader or footer.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access


"Jac Tremblay" <(E-Mail Removed)> wrote in message
news:1FF9646D-46EF-47AC-97AA-(E-Mail Removed)...
> Hi,
> I have a subform that lists all the records linked to the main form's
> record. Naturally, there is a new record at the end of the list. I put a
> command button on that subform so that the user can edit the corresponding
> record. But the problem is that all the command buttons are enabled (on
> every
> single row, even the new record row). I would like to enable only the one
> occurrence that is on the selected record.
> Is that possible?
> Thanks.
> --
> Jac Tremblay



 
Reply With Quote
 
Jac Tremblay
Guest
Posts: n/a
 
      27th Apr 2010
Hi Arvin,
Thanks for your reply. I knew in the back of my mind that this was not
possible but I wanted confirmation.
I tried to use the current record number, it's ID, and a combination of
those, nothing works. When you code:
Me.cmdWhatever.Enabled = False
all the buttons are disabled. Actually, there is only one button.
I have never tried the conditional formating. I was hoping for some miracle
solution.
Thanks you again, Arvin.
--
Jac Tremblay


"Arvin Meyer [MVP]" wrote:

> No, what you probably need to do is to put the command button in the form's
> geader or footer.
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.accessmvp.com
> http://www.mvps.org/access
>
>
> "Jac Tremblay" <(E-Mail Removed)> wrote in message
> news:1FF9646D-46EF-47AC-97AA-(E-Mail Removed)...
> > Hi,
> > I have a subform that lists all the records linked to the main form's
> > record. Naturally, there is a new record at the end of the list. I put a
> > command button on that subform so that the user can edit the corresponding
> > record. But the problem is that all the command buttons are enabled (on
> > every
> > single row, even the new record row). I would like to enable only the one
> > occurrence that is on the selected record.
> > Is that possible?
> > Thanks.
> > --
> > Jac Tremblay

>
>
> .
>

 
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
Enable/Disable command button on each record of continuous form Larry Kahm Microsoft Access 3 11th Nov 2008 01:21 AM
Command Button Caption on Continuous Form Dhonan Microsoft Access Form Coding 5 5th Jul 2008 02:40 PM
command button caption on continuous form Dhonan Microsoft Access Forms 1 4th Jul 2008 09:25 PM
Updating Continuous Subform with Command Button Sub =?Utf-8?B?QmlsbA==?= Microsoft Access Form Coding 2 10th Nov 2004 02:53 PM
Enable/Disable command button on continuous form Scott A Microsoft Access Form Coding 2 24th Jun 2004 12:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 PM.