Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript Focus() or Click() with Access Data Pages

Status
Not open for further replies.

angiole

Programmer
Oct 29, 2001
166
CA
Good Afternoon,

First some history ...
Moved into a new assignment where I'm presenting Access data using Access Data Pages. So forgive me ahead of time for perhaps not asking my question properly.

The Access (2000) wizard created what I needed and I've modified the layout for our groups' use successfully.

As far as they're concerned, it's great. I know it can be greater.

My objective is to make it as mouseless as possible in usage.

Now the present...
There are no data entry fields on the page, don't need them.
The page can retrieve several hundred entries to browse, and the record navigaton bar scrolls through batches of 10, no problem.

I've created code that responds to a "KeyDown" event for keys
and
, when the focus is on the navigation bar to scroll up and down the list, so far so good.

The problem now is to ensure that when the page loads, the focus is on the navigation bar.

Right now I click there to enable the keydown events I need.
Have consulted some documentation, but none seems to apply to this case very well.

p.s. I have contributed much help towards the SQL forum(s), so if any have a moment or two for this one, it will be much appreciated.

AA 8~)​
 
I'd love to help, but I don't have experience with Data Access Pages.

Perhaps one of the Access Forums might be more helpful.

From what I can see online, these are web pages with a bunch of Office component objects on them. The toolbar may be such an HTML <object>.

The typical way to set focus on a regular HTML form element in IE is to (1) set the element's tabIndex attribute and then (2) use an onload event handler to invoke the element's focus( ) method.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top