Connecting Tech Pros Worldwide Help | Site Map

disable a97 controls upon reaching "new record"

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 13th, 2008, 02:05 PM
MLH
Guest
 
Posts: n/a
Default disable a97 controls upon reaching "new record"

I have an A97 form with Allow Edits, Allow Deletions and
Allow Additions properties set. Scrolling through records
will eventually take me to the end of the records and one
more PgDn will take me to a new record. I also have a
cmd button on the form to take me instantly to a new
record.

There are 2 controls on the form I would like disabled
whenever I'm at a new record. I want them enabled at
all other times. Which event property would be most
suitable for this and what conditions do I check for?

  #2  
Old March 13th, 2008, 02:55 PM
Arno R
Guest
 
Posts: n/a
Default Re: disable a97 controls upon reaching "new record"


"MLH" <CRCI@NorthState.netschreef in bericht news:5acit31tkejlid6i2opc9m9j3lb2bnorl8@4ax.com...
Quote:
>I have an A97 form with Allow Edits, Allow Deletions and
Allow Additions properties set. Scrolling through records
will eventually take me to the end of the records and one
more PgDn will take me to a new record. I also have a
cmd button on the form to take me instantly to a new
record.

There are 2 controls on the form I would like disabled
whenever I'm at a new record. I want them enabled at
all other times. Which event property would be most
suitable for this and what conditions do I check for?
Use the Form_Current event (IMO you *should* know this...)
If Me.NewRecord .....

Arno R
  #3  
Old March 13th, 2008, 03:15 PM
Salad
Guest
 
Posts: n/a
Default Re: disable a97 controls upon reaching "new record"

MLH wrote:
Quote:
I have an A97 form with Allow Edits, Allow Deletions and
Allow Additions properties set. Scrolling through records
will eventually take me to the end of the records and one
more PgDn will take me to a new record. I also have a
cmd button on the form to take me instantly to a new
record.
>
There are 2 controls on the form I would like disabled
whenever I'm at a new record. I want them enabled at
all other times. Which event property would be most
suitable for this and what conditions do I check for?
In the OnCurrent field you could do something like
Me.TextField.Enabled = (Not Me.NewRecord)

Sealed
http://www.youtube.com/watch?v=QrYM2Gt9sMw
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.