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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Open datasheet view from switchboard



 
 
Thread Tools Display Modes
  #1  
Old May 12th, 2010, 08:05 PM posted to microsoft.public.access
Geoff[_13_]
external usenet poster
 
Posts: 7
Default Open datasheet view from switchboard

I know how to do this...rather, I have done it in the past with previous
versions. I am using Access 2007.

I need to add a switchboard argument that opens a form in datasheet mode.
Why Microsoft has not made this choice available is anyone's guess.

Anyhoo, I can't find the Switchboard code. I go to form design and all there
are for event handling are a few embedded macros. If I View Code, the only
code is what I have written for other forms.

Please someone tell me what completely stupid thing I am not thinking of.
  #2  
Old May 12th, 2010, 08:28 PM posted to microsoft.public.access
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Open datasheet view from switchboard

1. Create a macro or function to open the form in datasheet view.

2. Assign this macro or function to a button in the switchboard using the
Switchboard Manager under the Database Tools tab.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Geoff" wrote:

I know how to do this...rather, I have done it in the past with previous
versions. I am using Access 2007.

I need to add a switchboard argument that opens a form in datasheet mode.
Why Microsoft has not made this choice available is anyone's guess.

Anyhoo, I can't find the Switchboard code. I go to form design and all there
are for event handling are a few embedded macros. If I View Code, the only
code is what I have written for other forms.

Please someone tell me what completely stupid thing I am not thinking of.

  #3  
Old May 12th, 2010, 09:29 PM posted to microsoft.public.access
Geoff[_13_]
external usenet poster
 
Posts: 7
Default Open datasheet view from switchboard

I found what I needed (with your inspiration). I went to the properties for
the button on the switchboard and opened the embedded macro for the click
event. I then added:

Condition: [Command]=9
Action: OpenForm
Arguments: =[Argument], Datasheet, , , Edit, Normal

Condition: ...
Action: StopMacro
Arguments:

Now I just change the Argument to 9 in the Switchboard Items table for any
form I want to open thusly.

"Jerry Whittle" wrote:

1. Create a macro or function to open the form in datasheet view.

2. Assign this macro or function to a button in the switchboard using the
Switchboard Manager under the Database Tools tab.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Geoff" wrote:

I know how to do this...rather, I have done it in the past with previous
versions. I am using Access 2007.

I need to add a switchboard argument that opens a form in datasheet mode.
Why Microsoft has not made this choice available is anyone's guess.

Anyhoo, I can't find the Switchboard code. I go to form design and all there
are for event handling are a few embedded macros. If I View Code, the only
code is what I have written for other forms.

Please someone tell me what completely stupid thing I am not thinking of.

 




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


All times are GMT +1. The time now is 06:14 AM.


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