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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |