A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Canceling adding a record



 
 
Thread Tools Display Modes
  #1  
Old May 2nd, 2005, 03:25 PM
Dorian Chalom
external usenet poster
 
Posts: n/a
Default Canceling adding a record

I am getting back into Access please forgive me.

How do you cancel the adding of a record if you are adding a record by the
navigation button?

I hit the * to add a record but then I decide not to and I pres the
previous button.


  #2  
Old May 2nd, 2005, 03:35 PM
Al Camp
external usenet poster
 
Posts: n/a
Default

Dorian,
What you're doing (*) is "navigating" to a New record... you really
haven't created one yet. You didn't enter any data into the New record, and
Access knows that.

So.... if you got to Previous... or First... or any other record... or
even exit the form altogether, you'll (in affect) be "cancelling" the New
Record.

Once you enter data into (and update) a new record, then it will be have
to be deleted.
hth
Al Camp

"Dorian Chalom" wrote in message
...
I am getting back into Access please forgive me.

How do you cancel the adding of a record if you are adding a record by the
navigation button?

I hit the * to add a record but then I decide not to and I pres the
previous button.




  #3  
Old May 2nd, 2005, 03:50 PM
Dorian Chalom
external usenet poster
 
Posts: n/a
Default

OK...but there a couple fields on the form that are combo boxes based off of
a Select statement and those fields are auto filled. So, How do i delete
the record, or atleast trap the primary index cannot be null and delete the
record and allow the user to go to the previous record?


Thanks for your help

"Al Camp" wrote in message
...
Dorian,
What you're doing (*) is "navigating" to a New record... you really
haven't created one yet. You didn't enter any data into the New record,
and Access knows that.

So.... if you got to Previous... or First... or any other record... or
even exit the form altogether, you'll (in affect) be "cancelling" the New
Record.

Once you enter data into (and update) a new record, then it will be have
to be deleted.
hth
Al Camp

"Dorian Chalom" wrote in message
...
I am getting back into Access please forgive me.

How do you cancel the adding of a record if you are adding a record by
the navigation button?

I hit the * to add a record but then I decide not to and I pres the
previous button.






  #4  
Old May 2nd, 2005, 04:15 PM
Klatuu
external usenet poster
 
Posts: n/a
Default

Put some logic in the Before Update event of the form to determine whether to
add the record or not.

"Dorian Chalom" wrote:

OK...but there a couple fields on the form that are combo boxes based off of
a Select statement and those fields are auto filled. So, How do i delete
the record, or atleast trap the primary index cannot be null and delete the
record and allow the user to go to the previous record?


Thanks for your help

"Al Camp" wrote in message
...
Dorian,
What you're doing (*) is "navigating" to a New record... you really
haven't created one yet. You didn't enter any data into the New record,
and Access knows that.

So.... if you got to Previous... or First... or any other record... or
even exit the form altogether, you'll (in affect) be "cancelling" the New
Record.

Once you enter data into (and update) a new record, then it will be have
to be deleted.
hth
Al Camp

"Dorian Chalom" wrote in message
...
I am getting back into Access please forgive me.

How do you cancel the adding of a record if you are adding a record by
the navigation button?

I hit the * to add a record but then I decide not to and I pres the
previous button.







  #5  
Old May 2nd, 2005, 04:23 PM
Paul Overway
external usenet poster
 
Posts: n/a
Default

Are you assigning a Default Value or are you actually assigning a value to
the field? You should just assign a default value. If you've merely
assigned a Default Value, moving to new record doesn't create a new
record...until you start inserting data in the fields/editing.

--
Paul Overway
Logico Solutions
http://www.logico-solutions.com


"Dorian Chalom" wrote in message
...
OK...but there a couple fields on the form that are combo boxes based off
of a Select statement and those fields are auto filled. So, How do i
delete the record, or atleast trap the primary index cannot be null and
delete the record and allow the user to go to the previous record?


Thanks for your help

"Al Camp" wrote in message
...
Dorian,
What you're doing (*) is "navigating" to a New record... you really
haven't created one yet. You didn't enter any data into the New record,
and Access knows that.

So.... if you got to Previous... or First... or any other record... or
even exit the form altogether, you'll (in affect) be "cancelling" the New
Record.

Once you enter data into (and update) a new record, then it will be
have to be deleted.
hth
Al Camp

"Dorian Chalom" wrote in message
...
I am getting back into Access please forgive me.

How do you cancel the adding of a record if you are adding a record by
the navigation button?

I hit the * to add a record but then I decide not to and I pres the
previous button.








  #6  
Old May 2nd, 2005, 05:22 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default

If the Form has been dirtied, the user can hit Escape once or twice (the
first Escape ondoes the Active Control if required and the second Escape
undoes the Record add/edit) to cancel the addition.

--
HTH
Van T. Dinh
MVP (Access)



"Dorian Chalom" wrote in message
...
OK...but there a couple fields on the form that are combo boxes based off

of
a Select statement and those fields are auto filled. So, How do i delete
the record, or atleast trap the primary index cannot be null and delete

the
record and allow the user to go to the previous record?


Thanks for your help



  #7  
Old May 2nd, 2005, 06:02 PM
Dorian Chalom
external usenet poster
 
Posts: n/a
Default

Thanks. How could i automate that once they hit another navigation key?

"Van T. Dinh" wrote in message
...
If the Form has been dirtied, the user can hit Escape once or twice (the
first Escape ondoes the Active Control if required and the second Escape
undoes the Record add/edit) to cancel the addition.

--
HTH
Van T. Dinh
MVP (Access)



"Dorian Chalom" wrote in message
...
OK...but there a couple fields on the form that are combo boxes based off

of
a Select statement and those fields are auto filled. So, How do i delete
the record, or atleast trap the primary index cannot be null and delete

the
record and allow the user to go to the previous record?


Thanks for your help





  #8  
Old May 4th, 2005, 05:05 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default

See Klatuu's post in this thread.

--
HTH
Van T. Dinh
MVP (Access)


"Dorian Chalom" wrote in message
...
Thanks. How could i automate that once they hit another navigation key?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when adding a new record? M S Using Forms 3 March 28th, 2005 07:58 PM
Adding Record with Time Stamp James Fillmore via AccessMonster.com Using Forms 1 February 21st, 2005 09:00 AM
Finding the highest value and then adding 1 in a new record. Kjell Harnesk Using Forms 3 January 6th, 2005 06:42 PM
Prevent Blank Records being written. Need Help. Robert Nusz @ DPS Using Forms 4 December 29th, 2004 05:15 PM
validating data when adding record Gerry Using Forms 1 October 5th, 2004 06:39 PM


All times are GMT +1. The time now is 12:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.