Re: Escaped, But Still Dirty
Tech-Archive recommends: Fix windows errors by optimizing your registry
- From: "AccessVandal via AccessMonster.com" <u18947@uwe>
- Date: Mon, 14 May 2007 01:19:59 GMT
Hi Keith,
If Not FormComplete(Forms!frmCOs) Then
FormComplete is a function that reviews the form for the required
data. When I Escape out of the record and close the form, this
function still executes, telling me that I'm missing required fields.
What am I missing? TIA
Keith
I don't see how it will not execute for this line. It will always execute
this Function.
Maybe you're looking for something like a boolean....say....
If FormComplete(Forms!frmCOs) = True Then
'Do something here .......
When a control is bound to the recordsource and the control is in focus and
edited and the focus has move the next control, the Form's property is set to
"Dirty" (True) and will stay True until........
You can try adding this code to see if it can work for you.
If Not FormComplete(Forms!frmCOs) Then
FormReady = False ' i don't know what this do
Cancel = True
Me.Dirty = False 'add this
Else
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200705/1
.
Relevant Pages
- Re: Controling Event Sequencing...
... the framework will post a message to the message queue ... does not execute after the event is fired.... ... control exposes this event to the programmer to allow him / her to ... these system / control events will immidiately fire after the ... (microsoft.public.dotnet.languages.vb) - Re: More Before-The-Fact-Isms II, blocking viruses and spyware through NTFS
... > BUILTIN\Administrators Full Control ... > BUILTIN\CREATOR OWNER Special (Full Control except Execute) for Files ... but still can't launch any executables. ... (microsoft.public.security) - Re: Controling Event Sequencing...
... need the OnPostClick event fire after the OnClick event is completely ... event queue and have it execute AFTER the OnClick in completely done ... ... control exposes this event to the programmer to allow him / her to ... I inherit from this and create another button... ... (microsoft.public.dotnet.languages.vb) - Re: Javascript Server-side Action Questions..
... How do you set the values from server-side to a client-side ... control or how do you execute a javascript function without a button click ... What ever asp.net control post back to your server even handler add ... there you can write your checkbox selection logic. ... (microsoft.public.dotnet.framework.aspnet) - Re: Controling Event Sequencing...
... need the OnPostClick event fire after the OnClick event is completely ... event queue and have it execute AFTER the OnClick in completely done ... ... control exposes this event to the programmer to allow him / her to ... So, what I want to be able to do, is create a base class object for this ... (microsoft.public.dotnet.languages.vb) |
|