Jul 31, 2002 #1 rojdhi Programmer Jul 29, 2002 12 FR Hi. I have a macro that works at the opening of my report. How open the report without executing the macro...?? (just like Shift + open with Access...) Thx.
Hi. I have a macro that works at the opening of my report. How open the report without executing the macro...?? (just like Shift + open with Access...) Thx.
Aug 6, 2002 #2 promero Technical User Jun 12, 2001 83 ES Try this: [tt] Private Declare Function GetAsyncKeyState _ Lib "USER32" (ByVal vVey As Long) As Integer Private Sub Document_Open() If GetAsyncKeyState(vbKeyShift) < 0 Then Exit Sub MsgBox "Hello!" End Sub [/tt] Upvote 0 Downvote
Try this: [tt] Private Declare Function GetAsyncKeyState _ Lib "USER32" (ByVal vVey As Long) As Integer Private Sub Document_Open() If GetAsyncKeyState(vbKeyShift) < 0 Then Exit Sub MsgBox "Hello!" End Sub [/tt]