Group:  Microsoft Access ยป microsoft.public.access.reports
Thread: Annoying flicker when opening report

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Annoying flicker when opening report
mscertified 22.08.2006 17:04:01
Reports are being opened in Preview mode.
There is code in the open event.
I use docmd.maximize at the end of the open event
Report partially opens in magnified font then flickers then opens to fill
the screen in a small font.
I tried turning echo off at the beginning of open then on after the
docmd.maximize - no difference. I tried putting the docmd.maximize at the top
of the open event - no difference. Any ideas?
Here is an example:

Private Sub Report_Open(Cancel As Integer)
On Error GoTo ER
Dim i As Long
DoCmd.Echo False
If Nz([Forms]![frmReportSelection].[Checklist], "") = "" Then
Me.txtChecklist.ControlSource = "='All Checklists'"
Else
Me.txtChecklist.ControlSource =
"=[Forms]![frmReportSelection]![Checklist].[Column](1)"
End If
' Calculate Included Audits for heading
i = GetIncluded() 'This runs a SQL command
Me.Included.ControlSource = "=" & Eval(i)
' Calculate Excluded Audits for heading
i = GetExcluded() 'This runs a SQL command
Me.Excluded.ControlSource = "=" & Eval(i)
DoCmd.Maximize
DoCmd.Echo True
Exit Sub
ER:
DoCmd.Echo True
MsgBox Err.Description, , "Report_Open"
End Sub

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net