ms access - VBA function in ControlsSource wont fire -


on continuous form have checkbox controlsource = "=hasdocument([nr])" function defined in form following:

private function hasdocument(nr variant) boolean     on error resume next      if isnull(nr)         ' pass     elseif err <> 0         ' pass     else         hasdocument = dexists("id", "kurztexte", "aufwendungs_nr=" & nr)     end if  end function 

most of time works, on machines function hasdocument won't fire. when control gets focus, function fires on machines record.

with form.recalc function fires displayed records. when scroll down, access wont fire function new records.

when want use form subform form.recalc works above, access redraws subform , control show null again. if function has never fired..

i made gif clarify:

how looks

this problem happens access 2010. access 2013 form loads without values in controls, after 1-2 seconds (which kinda long) hasdocument-function begins fire records.

restarting machine let problem disappear time, keeps poping , then.

has suggestion can cause behavior?

for same problem: microsoft publish hotfix seams fix issue.

it can found here: http://support.microsoft.com/kb/2899528


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -