More strange Tab Control behavior

L

lj

Has anyone else noticed that if you assign accelerator keys to the
individual tab control pages and then do any adding, deleting or moving
around controls on that page that the accelerator stop working? You have to
reassign them...

lj
 
A

Allen Browne

Not seeing the problem here, lj.

My test form has pages with Captions:
&First page
&Second page
and shortcuts on text boxes on the pages, e.g.:
&Client number

I can select a page with &S, and then a text box on that page with its
shortcut key.

If your tabs contain different subforms, it would require saving the record
before focus could move to the subform. Could this be the issue?
 
L

lj

No, it only seems to happen if I make design changes to the page. Such as a
change to the subform or adding and deleting controls to the tab page,
playing with the code for command buttons, etc. (Especially deleting
controls...)

It's not a matter of changing a record on the subform. After all the design
changes are made, saved, compiled, compacted, etc. the accelerator key just
doesn't work (it gives me that lovely 'beep' indicating a boo-boo). I go
back into design, erase the '&', put it back and everything is fine.

Perhaps it only happens to those of us who have to figure out how to make
things work as we're going...
 
A

Allen Browne

You are making design changes while the form is open (not design view)?

Let us know if you see corruption more often when doing this.

When you alter a form, Access creates a temporary copy (so it can restore
the previous one if you don't save your changes). Since the form is already
open and running, are you still using the saved form? Or did Access close it
and reopen the temp form for you to make changes to? Is there another copy
of the code as well? Can it tell the difference between these four objects,
and make the correct associations when you decide to save? Or is this one of
the causes for the frequent corruptions you receive while modifying the
objects in your database?
 
L

lj

No, the changes are always made in design view. And once you reassign the
accelerator keys, everything is fine.

As I mentioned in my second post, it most easily reproduced by removing a
control from the Tab page.

lj
 

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