473,387 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

disable a97 controls upon reaching "new record"

MLH
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?
Mar 13 '08 #1
2 2062

"MLH" <CR**@NorthState.netschreef in bericht news:5a********************************@4ax.com...
>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
Mar 13 '08 #2
MLH wrote:
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
Mar 13 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Casper | last post by:
Is there features/containers of standard C++ or the STL which will assist in minimizing memmory fragmentation upon creation of a huge ammount of objects on the heap? Currently my application...
2
by: ZubZero | last post by:
Hello, i have to write a utility in c++ for windows 2k/XP. But i have 2 difficult problems. I asked many programmers i know, but none of them was able to tell me how i can do this. 1. I...
1
by: sven_c_t | last post by:
Hi! Probably a newbie question. I´ve been working a bit with the widget toolkit FLTK and I have been wondering why there is such a heavy use of the new operator, when it does not seem to be...
0
by: William Wisnieski | last post by:
Hello Everyone: I'm having a very strange problem occurring with my Access 2000 database. I call it the "mystery record." Here's the story: I have a query by form that returns a record set...
14
by: Atara | last post by:
I know in C++ it is true. but what about VB .Net and its GarbageCollector ? For example, consider the following case. Does f2() needs to do any disposing code ? Public Sub f1() As...
5
by: Sam | last post by:
Hi everyone Could anyone help me understand the usage of the "New" keyword I'm new to VB.Net. 1. Why do we use the "New" keyword on some object type variables such as the myPen of the...
5
by: Piedone | last post by:
Hi! I'm new to this forum, but i try not to post a stupid question the first time :-). I googled for my problem, but couldn't find any answers. When we open a select query, there is always a...
3
rsmccli
by: rsmccli | last post by:
Using AC2002 Hello. I am working with an existing DB that has "Add New" command buttons on two forms. When I, an Admin, click the buttons, they work properly, and a new, blank form is created,...
30
by: Medvedev | last post by:
i see serveral source codes , and i found they almost only use "new" and "delete" keywords to make they object. Why should i do that , and as i know the object is going to be destroy by itself at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.