Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Generic Close

$
0
0
Quick question. From a dashboard, I open one of a number of forms. On each form is a "Return to Main Menu" button. The button runs a macro which is simply a CloseWindow (ObjectType=Form). I want to use one macro regardless of which form is open. In earlier versions of Access I thought I could get away with leaving the objectname blank, but I'm now in 2007/10 and that doesn't seem to work. I tried setting the ObjectName "=[screen.activeform.name]" but that doesn't work. What is the correct/best way to create a generic close?
Pete

Viewing all articles
Browse latest Browse all 13329

Trending Articles