![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When I click on a new report I want the Print Preview Tab to become visible AND have the focus. I can't find a way in vba to put the focus on the tab w/o using sendkeys. Anyone know? It's obviously used by Access' internal mechanisms somewhere but doesn't seem like that functions are exposed for us users.. er ah 'developers'. |
#3
| |||
| |||
|
|
When Microsoft says "developers," they are really thinking of .NET developers, not Access developers :-). |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
When I click on a new report I want the Print Preview Tab to become visible AND have the focus. |
|
I can't find a way in vba to put the focus on the tab w/o using sendkeys. |
#6
| |||
| |||
|
|
wrote in messagenews:b9b56299-6091-448c-8d24-ebfcf8037c58 (AT) y24g2000yqb (DOT) googlegroups.com... When I click on a new report I want the Print Preview Tab to become visible AND have the focus. What version? |
|
Furthermore, when you say "new" report, are you talking about creating a new report that is THEN to be used for a considerable amount of times over and over? |
|
If you open a report in print preview mode (as opposed to report view), then then you ONLY have the print preview tab anyway. I must be missing something rather basic as to why you would need any code to set a active tab when you ONLY should be seeing the print preview tab in the first place? |
#7
| |||
| |||
|
|
Oh, ok. Right now I have it showing my custom tab, then making the print preview tab visible. I guess I could hide the custom tab and only show the print preview tab. Why didn't that occur to me? Thanks. |
#8
| |||
| |||
|
|
wrote in messagenews:cdada423-253b-4020-869b-6765cd51562b (AT) v9g2000pri (DOT) googlegroups.com... Oh, ok. Right now I have it showing my custom tab, then making the print preview tab visible. I guess I could hide the custom tab and only show the print preview tab. Why didn't that occur to me? Thanks. Unless that custom tab is a left over from custom menu bars, why even spend money and time and resources that could be better used else where? There's no need to write 100's + lines of code here and that is just a waste of your precious time. In fact, I even perplexed why you even have to have or hide some extra tab here? You don't have to hide anything at all if you specify a custom ribbon you build for the report. I have about three examples here you can download, the fourth one from the bottom is for 2007 reports. A good chance the one for 2010 (last one) will also work for your purposes.http://www.kallal.ca/msaccess/DownLoad.htm But as I stated, I'm perplexed why you have to resort to any code or do anything here at all except use the standard built in features. All you need to do is specify a custom ribbon for all of your reports. *Also, if youset the reports default view to print preview, then again that tab should be defaulted anyway. I think it is best to build *one custom report ribbon(or take one from my above examples and you done for the next 10 years). You should not need to write any code here for the ribbon switch or display correctly. Not only can you have the custom report ribbon always appear correctly without you have to write *code to hide things or switch things, but you can add a couple of nifty features like a one button e-mail click, or perhaps even a save as PDF one button click. (the above sample has these ideas). A good rule of thumb here is if something taking too much effort and time, then it likely the wrong path to take. -- Albert D. Kallal (Access MVP) Edmonton, Alberta Canada Pleasenospam_kal... (AT) msn (DOT) com |
![]() |
| Thread Tools | |
| Display Modes | |
| |