VBA script executes thrice per OnFormat in Report? how to do it only once (1 Viewer)

sumox

Registered User.
Local time
Today, 14:02
Joined
Oct 1, 2013
Messages
89
I have a report and in rpt-footer ,some values/txtboxes
haf to be fetched to vba for calculating or External Excel file writing

now I've activated OnFormat Event , which executes the
script thrice per Preview !:banghead:

how to stop dat dammn thing, and execute only once

i am using ACC2003+win7 O.S.
The Report has no other scripts on any section
 

Reenen

New member
Local time
Today, 11:32
Joined
May 26, 2014
Messages
8
Set a global variable AlreadyDone (or whatever)

Set it to false when you intialize, and then at the start just check if AlreadyDone=true, skip to the end.
 

Users who are viewing this thread

Top Bottom