Property after acViewPreview

M

Maarkr

I have a menu form where the user clicks the report button, then a cbobox
filter becomes visible on the form that they select to preview the report.
The cbobox is not visible until the report button is clicked... but how can I
make the cbobox not visible after the report is previewed?
In the cbobox_afterUpdate sub I added 'cbobox.visible=false' after the
DoCmd...acViewPreview line, but that started a loop crash because the 'object
can't receive the focus.' I could go thru every object on the form and have
the cbobox.visible=false property for the onfocus or onclick event, but I'm
sure there's an easier way. thnks
 
M

Maarkr

never mind... I had to set the focus to the cmdbtn before making the cbobox
invisible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top