Is there a way that, when using a single or continuous form which
allows additions and edits, I can detect when I am entering a new
record (eg moved on to *) rather than editing an existing one?
In general, while wanting edits to be allowed, I want to be able to
warn if certain fields are being edited unexpectedly, but not do this
while a new record is being entered.
It's to avoid the sort of situation where someone thinks they are doing
a filter by form but accidentally types all over an existing record (is
it only me that people do this to?). 2 3915
On 2 Nov 2005 03:00:30 -0800, "MIG" <go********@dor eenbird.co.uk> wrote: Is there a way that, when using a single or continuous form which allows additions and edits, I can detect when I am entering a new record (eg moved on to *) rather than editing an existing one?
In general, while wanting edits to be allowed, I want to be able to warn if certain fields are being edited unexpectedly, but not do this while a new record is being entered.
It's to avoid the sort of situation where someone thinks they are doing a filter by form but accidentally types all over an existing record (is it only me that people do this to?).
IF Not Me.New Record Then (existing record)
IF Me.NewRecord Then (new record)
Wayne Gillespie wrote: On 2 Nov 2005 03:00:30 -0800, "MIG" <go********@dor eenbird.co.uk> wrote:
Is there a way that, when using a single or continuous form which allows additions and edits, I can detect when I am entering a new record (eg moved on to *) rather than editing an existing one?
In general, while wanting edits to be allowed, I want to be able to warn if certain fields are being edited unexpectedly, but not do this while a new record is being entered.
It's to avoid the sort of situation where someone thinks they are doing a filter by form but accidentally types all over an existing record (is it only me that people do this to?).
IF Not Me.New Record Then (existing record)
IF Me.NewRecord Then (new record)
Aha; thanks.
(As a last resort, try the bleedin obvious, but I never spotted that.) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stephane Belzile |
last post by:
Is there a way I can detect in vb.Net the power has switched to a UPS
unit in case of power failure?
Thanks
|
by: Victor |
last post by:
I've been to a few websites where it displays the town, state (if USA),
country I'm browsing from. Now, I know that detecting country is easy, but
how do you determine the town?
What ASP components do this?
Thanks,
Bill.
|
by: Bogdan Zamfir |
last post by:
Hi,
When users TAB to a field, I want it not to select all field content, but
instead go to either begin or end of the field. This because sometimes user
TAB to a field then type something by mistake, by this loosing old content
from the field
I know Access have setting for Behavior setting field, but this seems global
to Access, not to application, so no matter if I change this setting, if I
run app on a PC where Access have this...
|
by: Chris |
last post by:
Can anybody tell me how to detect is the user has closed the browser
Thank you
|
by: Aaron Smith |
last post by:
I have a parent table that has one child table. The parent has a single
field (ID, AutoIncrement, Seed 0, Step -1 in the DataSet, Seed 1, step
1, in DataSource). The child is linked to this ID column in the parent.
I have the parent fields in textboxes and the child is a DataGrid. When
I add a new parent record, then go to add child records, I am getting an
exception that says, "ForeignKeyConstraint requires the child key values
(0) to...
| |
by: Rich |
last post by:
Hello,
I need to trap/detect when a textbox is entered via the tabkey. If the
textbox is not empty when entered via the tabkey then set focus to next
textbox. To enter that textbox would then require a mouseclick if it already
contains text to be edited. I am guessing that I would need to trap for
this in the Enter Event of this particular textbox.
I tried this in the Enter Event of the Textbox, but...
|
by: Ron |
last post by:
Hi All,
Using Access2000, winXP.
Table 1 = tblClients displayed on frmClients via qryClients. 2nd table =
tblInvoices shown on frmInvoices via qryInvoices. 2nd table = tblDetails
shown on subform(to frmInvoices) sfrmDetails via qryDetails.
Relationship built between tblClients/tblInvoices/tblDetails by ClientID.
Relationship between tblInvoices/tblDetails by InvoiceID. All works fine if
|
by: Dst |
last post by:
This is what i'm trying to do:
I'm porting a windows app to a web app.
I have a webform which will edit some data stored in a database.
The data needs to be locked in the database, while editing.
On first page load:
Create a custom rowlock object and store it in viewstate.
When user clicks on edit, retrieve the viewstate object and lock
the row in the database.
|
by: rsmccli |
last post by:
Access 2002
Hi, I have a number of comboboxes/textboxes in the header of a form that the user selects values from. These comboboxes/textboxes correspond to controls in a datasheet view subform. When a new record is created in the subform I want these values to automatically write to the new record in the subform.
Right now I have this autofill procedure running on the AfterInsert event of the subform. It works well, except for the fact...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |