Click here to Skip to main content
15,917,795 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Insufficient system resources Pin
Dave Kreskowiak14-Feb-05 5:34
mveDave Kreskowiak14-Feb-05 5:34 
GeneralRe: Insufficient system resources Pin
Kirk Quinbar15-Apr-09 10:54
Kirk Quinbar15-Apr-09 10:54 
GeneralVB.NET Datasets Pin
Mahesh167913-Feb-05 22:11
Mahesh167913-Feb-05 22:11 
GeneralRe: VB.NET Datasets Pin
Dave Kreskowiak14-Feb-05 1:26
mveDave Kreskowiak14-Feb-05 1:26 
GeneralRe: VB.NET Datasets Pin
Virus Detecter16-Feb-05 0:28
Virus Detecter16-Feb-05 0:28 
GeneralTriggering Event - Access Form Pin
FuzMic13-Feb-05 19:29
FuzMic13-Feb-05 19:29 
GeneralRe: Triggering Event - Access Form Pin
Dave Kreskowiak14-Feb-05 5:18
mveDave Kreskowiak14-Feb-05 5:18 
GeneralRe: Triggering Event - Access Form Pin
Mike the Red14-Feb-05 8:22
Mike the Red14-Feb-05 8:22 
It sounds like you are trying the round-a-bout way of doing things.

Could you do what you want by having separate 'OK' and 'Cancel' buttons? With a cancel button you can prevent the Update, if that's what you're looking to do.


FuzMic wrote:
In particular I am interested to to check if the triggering event is the clicking of the "Close" button of the form

If you just want to know if the close button has been clicked when the Update event occurs, you could define a module-level boolean such as closeClicked initialized to FALSE.

In the Close button's OnClick handler, set closeClicked = TRUE. Then, in your OnUpdate handler, you can check the value of closeClicked to see if the button has been pushed.

Just make sure you set closeClicked = TRUE before the docmd.close acForm, me.name command.



I wouldn't go so far as to call this method 'sloppy', but I would think there should be a more graceful way of accomplishing your goal.
GeneralHi Mike Red & Dave Pin
FuzMic14-Feb-05 19:30
FuzMic14-Feb-05 19:30 
GeneralVb Reading from Excel Pin
greg 77713-Feb-05 18:58
greg 77713-Feb-05 18:58 
GeneralRich Text Field - Background Pin
TomVerkaaik13-Feb-05 17:26
TomVerkaaik13-Feb-05 17:26 
GeneralConnecting scanner Pin
Avanti Dharkar13-Feb-05 0:52
Avanti Dharkar13-Feb-05 0:52 
GeneralRe: Connecting scanner Pin
H@is@here18-Feb-05 10:14
H@is@here18-Feb-05 10:14 
GeneralRe: Connecting scanner Pin
Avanti Dharkar19-Feb-05 3:52
Avanti Dharkar19-Feb-05 3:52 
QuestionCan some Help me with this over kill i know but ? Pin
Delo12-Feb-05 20:42
Delo12-Feb-05 20:42 
AnswerRe: Can some Help me with this over kill i know but ? Pin
Dave Kreskowiak13-Feb-05 17:27
mveDave Kreskowiak13-Feb-05 17:27 
QuestionHow to call a procedure Pin
Mekong River12-Feb-05 16:23
Mekong River12-Feb-05 16:23 
AnswerRe: How to call a procedure Pin
mm_chanakaya12-Feb-05 16:33
mm_chanakaya12-Feb-05 16:33 
GeneralRe: How to call a procedure Pin
Mekong River13-Feb-05 3:15
Mekong River13-Feb-05 3:15 
AnswerRe: How to call a procedure Pin
rwestgraham12-Feb-05 17:53
rwestgraham12-Feb-05 17:53 
GeneralRe: How to call a procedure Pin
Mekong River13-Feb-05 3:14
Mekong River13-Feb-05 3:14 
Generalcutting video file Pin
mm_chanakaya12-Feb-05 8:48
mm_chanakaya12-Feb-05 8:48 
GeneralRe: cutting video file Pin
Mike the Red13-Feb-05 16:16
Mike the Red13-Feb-05 16:16 
GeneralRe: cutting video file Pin
mm_chanakaya14-Feb-05 5:57
mm_chanakaya14-Feb-05 5:57 
GeneralHelp controlling columns in datagrid Pin
Gaz@UK12-Feb-05 8:20
Gaz@UK12-Feb-05 8:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.