J
jpm
Hi,
Version: Access 2k3
Creating a form to centralize some commands and pre-defined queries.
Click on button which triggers [Click] event within which call is made:
doCmd.OpenQuery "QueryX", acViewNormal, acReadOnly
Problem is the form retains focus and there seems to be no way to set the
focus on the query(datasheet view). Clicking on the query window results in
no response.
Is there a way to programmatically switch the focus to the query
results(data sheet view) where the data sheet is set to read only?
n.b. the main window in MS Access is minimized in AutoExec macro. The
AutoExec macro also calls the form that is preventing interaction with the
datasheet window once I've opened it (docmd.OpenQuery) This is because I've
set the form load mode to 'Dialog'.
So, while that prevents the user from interacting with the main database
window, it also prevents access to any other window.
Therefore the real question might be. How do I prevent access to particular
windows(e.g. the main database window) while permitting access to other
default UI's like a query's window in datasheet mode?
Any substantive pionters are appreciated.
JimM
Version: Access 2k3
Creating a form to centralize some commands and pre-defined queries.
Click on button which triggers [Click] event within which call is made:
doCmd.OpenQuery "QueryX", acViewNormal, acReadOnly
Problem is the form retains focus and there seems to be no way to set the
focus on the query(datasheet view). Clicking on the query window results in
no response.
Is there a way to programmatically switch the focus to the query
results(data sheet view) where the data sheet is set to read only?
n.b. the main window in MS Access is minimized in AutoExec macro. The
AutoExec macro also calls the form that is preventing interaction with the
datasheet window once I've opened it (docmd.OpenQuery) This is because I've
set the form load mode to 'Dialog'.
So, while that prevents the user from interacting with the main database
window, it also prevents access to any other window.
Therefore the real question might be. How do I prevent access to particular
windows(e.g. the main database window) while permitting access to other
default UI's like a query's window in datasheet mode?
Any substantive pionters are appreciated.
JimM