Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 1st, 2005, 06:14 AM
ranbir singh ranbir singh is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 24 ranbir singh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 20 m 18 sec
Reputation Power: 0
cancel button

i have created a form with 15 or 16 fields (some of which are text fields, some are radio buttons and someare etc etc...in the bottom of the form i have created , save and save&close and Cancel button.

Suppose when feeding the data in between the fields in the forms and i dont want to save the data... i will press the cancel button. I want when pressing the cancel button, everything should go off (the one entires which i was feeding right now). Even pressing the X button at the top right did not help...

Entring even a single field and pressing the X button, even that entry get saved... that why i have created a cancel buttion.

Anybody can help me with Cancel button. the functionality should be no saving at all.

Reply With Quote
  #2  
Old February 1st, 2005, 09:24 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 4
There is no such thing as cancelling a record once it has been entered. You can use the delete record method to remove an unwanted record that was entered.
lwells

Reply With Quote
  #3  
Old February 1st, 2005, 01:59 PM
alex_lee822 alex_lee822 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 43 alex_lee822 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 41 m 15 sec
Reputation Power: 4
Would the Me.Undo command work? I'm not sure. It will just undo everything on the record right??

Reply With Quote
  #4  
Old February 1st, 2005, 02:58 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 4
Well...I feel a little foolish, you are correct, I had totally forgotten about that.
But it is the same as deleting the record anyway, so it can be called a cancel button.

Here is the syntax

DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70

lwells

Last edited by lwells : February 1st, 2005 at 03:27 PM.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > cancel button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway