set focus to report

M

M. Wilson

Hello,

I have multiple reports open at once. I want to move focus from one report
to another.

I used the following line

reports![report_name].setfocus

I get an error message. Does anyone know why this code doesn't work or have
a suggestion of how can move focus from one open report to another?

Thanks,
M. Wilson
 
M

Marshall Barton

M. Wilson said:
I have multiple reports open at once. I want to move focus from one report
to another.

I used the following line

reports![report_name].setfocus

I get an error message. Does anyone know why this code doesn't work or have
a suggestion of how can move focus from one open report to another?


I've used a custom tool bar for a bunch of reports that are
all open at the same time. There is a toolbar button for
each report with this code like this in the action
procedures:

DoCmd.SelectObject acReport, "Quote Report", False
 
M

M. Wilson

Hi Marshall,

That did it!

Thanks,
M. Wilson

Marshall Barton said:
M. Wilson said:
I have multiple reports open at once. I want to move focus from one report
to another.

I used the following line

reports![report_name].setfocus

I get an error message. Does anyone know why this code doesn't work or have
a suggestion of how can move focus from one open report to another?


I've used a custom tool bar for a bunch of reports that are
all open at the same time. There is a toolbar button for
each report with this code like this in the action
procedures:

DoCmd.SelectObject acReport, "Quote Report", False
 

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

Similar Threads


Top