473,396 Members | 1,764 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,396 software developers and data experts.

No input updating

TTD
Hi,

I have a form (input type) which is based on a table. Let's say it has 2
fields

1: numeric keyfield
2: textfield.

When the form opens the numeric is automatically added with 1. When I leave
the textfield empty and I close the form, the database is being written. Bu
tI don't want that to happen, if the textfield is empty.

With which command can I prevent Access from writing to the table when I
close the form?

Thanks in advance.
Nov 12 '05 #1
2 1394
Are you saying - if the text is not completed then do not save the record???

You could make the textfield compulsory or you could write a little code
that would undo the changes to the numeric field if the text field is not
completed

Thirdly, you could unlink the numeric field and add the data from the
numeric field using SQL if the text field is completed.

Let me know which one sounds best and I will provide more details.
"TTD" <tt*@hotmail.com> wrote in message
news:c8***********@beast.euro.net...
Hi,

I have a form (input type) which is based on a table. Let's say it has 2
fields

1: numeric keyfield
2: textfield.

When the form opens the numeric is automatically added with 1. When I leave the textfield empty and I close the form, the database is being written. Bu tI don't want that to happen, if the textfield is empty.

With which command can I prevent Access from writing to the table when I
close the form?

Thanks in advance.

---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.688 / Virus Database: 449 - Release Date: 18/05/2004
Nov 12 '05 #2
TTD
Hi WaW

I don't want to make the textfield compulsary. If the user enters the form
by accident or cahnges his mind and want to leave, then I don't want him to
be bothered by Access.

Undo the changes to the numeric field would be fine. (though unlinking
sounds also interesting).

Thanks in advance

"WindAndWaves" <ac****@ngaru.com> schreef in bericht
news:0Q*******************@news.xtra.co.nz...
Are you saying - if the text is not completed then do not save the record???
You could make the textfield compulsory or you could write a little code
that would undo the changes to the numeric field if the text field is not
completed

Thirdly, you could unlink the numeric field and add the data from the
numeric field using SQL if the text field is completed.

Let me know which one sounds best and I will provide more details.
"TTD" <tt*@hotmail.com> wrote in message
news:c8***********@beast.euro.net...
Hi,

I have a form (input type) which is based on a table. Let's say it has 2
fields

1: numeric keyfield
2: textfield.

When the form opens the numeric is automatically added with 1. When I leave
the textfield empty and I close the form, the database is being written.

Bu
tI don't want that to happen, if the textfield is empty.

With which command can I prevent Access from writing to the table when I
close the form?

Thanks in advance.

---
Please immediately let us know (by phone or return email) if (a) this

email contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.688 / Virus Database: 449 - Release Date: 18/05/2004

Nov 12 '05 #3

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

Similar topics

1
by: LC's No-Spam Newsreading account | last post by:
I have the following arrangement working under Netscape 3 / Unix, IE6 / Win and Konqueror / Linux, but NOT under Netscape 7 Unix or Mozilla Linux (silently fails) nor under Netscape 4 Unix (fails...
5
by: Raffi | last post by:
Hi folks, I'm new to JavaScript and need some help. I have a form with a select field. Depending on what is selected in this field, I want to display or not display another select field. For...
2
by: Peter Wright | last post by:
Hi all. Hopefully this should demonstrate the problem I'm having: http://flooble.net/~pete/focus-problem-demo/ (I'm testing it in Mozilla only, but I'm not sure if it's actually a...
2
by: lgo | last post by:
I have read several variations of this topic posted on this news group. However I was not able to find the answer for my problem. I am trying to build code (see below) to update a large single...
5
by: gimme_this_gimme_that | last post by:
I'd like to create my own version of google suggest GS. If you haven't seen GS check it out at : http://www.google.com/webhp?complete=1&hl=en I've reviewed several AJAX write-ups on the...
4
by: Vikram | last post by:
How can i restrict user from entering anything in file name of input type file (upload) control. I want user can ionly select file using browse button
7
by: M C | last post by:
Hi, This is a problem that has been haunting me for days and I've come to a complete dead-end. I'm using a objectdatasource to select and update a gridview control. Populating with select works...
1
by: spolsky | last post by:
try the the following code with Opera 9.01 (Windows). when clicked slightly faster than normal clicking, the toggler checkbox and other checkboxes displays differently although event method works...
3
by: vishnu | last post by:
Hi, I am using HTML input file button to browse the file and just am updating the file name in sql server table.But now i want to browse the file from the remote file share path ..How can i...
1
by: SkipNRun | last post by:
I am a novice when comes to JavaScript, AJAX. I am working on a form, which will allow users to update their contact information. In order to make the form flexible, I need to use pull down list. ...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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...
0
agi2029
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,...

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.