A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Set Focus after Navigate



 
 
Thread Tools Display Modes
  #11  
Old August 4th, 2005, 06:17 PM
Dirk Goldgar
external usenet poster
 
Posts: n/a
Default

"Zadok @ Port of Seattle"
wrote in message

well that is good news for you and bad for me, eh. thanks again for
the trouble shooting Dirk. guess i'm out of luck. i'm using XP,
Access 2003, Acrobat Pro 6.0.


Not necessarily. I'll bet you I can figure out a way to make it work
for you. Give me a day or so to tinker with it.

Do you really need to open your drawings in the web browser control?
Would it work to just open them in Acrobat, in an external window?

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


  #12  
Old August 8th, 2005, 04:41 PM
Zadok @ Port of Seattle
external usenet poster
 
Posts: n/a
Default

i had it opening in an external window, the problem was that i couldnt see
both my database and the pdf. i need to see the pdf to type in the
information on the blueprint for the database.
  #13  
Old August 9th, 2005, 11:20 PM
Zadok @ Port of Seattle
external usenet poster
 
Posts: n/a
Default

Dirk, I've also noticed that if I ever switch to view the VIEWER form and
come back to the PROJECTS form, focus is lost, even outside of running the
code. It looks like the VIEWER/WEB BROWSER element just always grabs focus no
matter what.

"Zadok @ Port of Seattle" wrote:

i had it opening in an external window, the problem was that i couldnt see
both my database and the pdf. i need to see the pdf to type in the
information on the blueprint for the database.

  #14  
Old August 10th, 2005, 02:56 AM
Dirk Goldgar
external usenet poster
 
Posts: n/a
Default

"Zadok @ Port of Seattle"
wrote in message
news
Dirk, I've also noticed that if I ever switch to view the VIEWER form
and come back to the PROJECTS form, focus is lost, even outside of
running the code. It looks like the VIEWER/WEB BROWSER element just
always grabs focus no matter what.


I don't kinow what's going on there or why. But let's see if I can get
you closer to where you want to go. In the Declarations section of the
code module of the PROJECTS form, put this function declaration:

Private Declare Function Putfocus Lib "user32" _
Alias "SetFocus" (ByVal hwnd As Long) _
As Long

Then, in the code for the command button, after the lines

Me.SetFocus
Me.Sheet_No.SetFocus

add the following line:

Putfocus Me.hWnd

I can't make a meaningful test of this here, since the original code
works for me. But let me know if that makes a difference for you.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping the focus on the same field as in the previous record Bill Reed via AccessMonster.com Using Forms 5 June 28th, 2005 06:28 PM
spinbutton not take focus? Sandy Powerpoint 5 June 21st, 2005 08:19 AM
focus stuck in control Walter Using Forms 2 March 12th, 2005 01:45 PM
How do I programmatically set focus to the first control in the tab order [email protected] General Discussion 4 February 24th, 2005 08:18 AM
Set Focus Howard Using Forms 3 June 19th, 2004 05:48 PM


All times are GMT +1. The time now is 03:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.