473,513 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Beginner: Open Main Switchboard Item in Datasheet view?

I have created a Main Switchboard in Access 2000 and it has a button
which opens a Form. I have set the form Properties Default View to
Datasheet and this always opens in datasheet view.

When I open the Form from the Main Switchboard it always opens in form
view.

Can this be changed so that it always opens in Datasheet View?

Terry
Nov 12 '05 #1
4 9394
tc*****@merseymail.com (Terry) wrote in message news:<38**************************@posting.google. com>...
I have created a Main Switchboard in Access 2000 and it has a button
which opens a Form. I have set the form Properties Default View to
Datasheet and this always opens in datasheet view.

When I open the Form from the Main Switchboard it always opens in form
view.

Can this be changed so that it always opens in Datasheet View?

Terry

Change the code of the OnClick event of your command button on the
Switchboard to the following:

DoCmd.OpenForm "YourFormName", acFormDS

Also see Access Help under OpenForm Method. There it explains the
different views for opening forms, by default it is acNormal (Form
view).

Karina
Nov 12 '05 #2
ka*****@iprimus.com.au (Karina) wrote in message news:<fc**************************@posting.google. com>...
tc*****@merseymail.com (Terry) wrote in message news:<38**************************@posting.google. com>...
I have created a Main Switchboard in Access 2000 and it has a button
which opens a Form. I have set the form Properties Default View to
Datasheet and this always opens in datasheet view.

When I open the Form from the Main Switchboard it always opens in form
view.

Can this be changed so that it always opens in Datasheet View?

Terry

Change the code of the OnClick event of your command button on the
Switchboard to the following:

DoCmd.OpenForm "YourFormName", acFormDS


Also see Access Help under OpenForm Method. There it explains the different views for opening forms, by default it is acNormal (Form
view).

Karina


I put the following code in the OnClick Event for the command button
as you suggested:

DoCmd.OpenForm "Tets Taken", acFormDS

but it has no effect, the Form still opened in Form view. After
reading the Access Help on OpenForm Action I also tried usimg a Macro
to set the OpenForm Action View to Datasheet. This also had no effect.
The Form still opened in Form view.

Terry
Nov 12 '05 #3
tc*****@merseymail.com (Terry) wrote in message news:<38**************************@posting.google. com>...
ka*****@iprimus.com.au (Karina) wrote in message news:<fc**************************@posting.google. com>...
tc*****@merseymail.com (Terry) wrote in message news:<38**************************@posting.google. com>...
I have created a Main Switchboard in Access 2000 and it has a button
which opens a Form. I have set the form Properties Default View to
Datasheet and this always opens in datasheet view.

When I open the Form from the Main Switchboard it always opens in form
view.

Can this be changed so that it always opens in Datasheet View?

Terry

Change the code of the OnClick event of your command button on the
Switchboard to the following:

DoCmd.OpenForm "YourFormName", acFormDS


Also see Access Help under OpenForm Method. There it explains the
different views for opening forms, by default it is acNormal (Form
view).

Karina


I put the following code in the OnClick Event for the command button
as you suggested:

DoCmd.OpenForm "Tets Taken", acFormDS

but it has no effect, the Form still opened in Form view. After
reading the Access Help on OpenForm Action I also tried usimg a Macro
to set the OpenForm Action View to Datasheet. This also had no effect.
The Form still opened in Form view.

Terry

I've tested this on different forms and it always works. I can't think
of why it wouldn't work for you. Maybe create a simple test form and
open it through a command button from another form with the above
code. If this works there might be a problem with your "Tets Taken"
form. That's all I can think of at the moment.

Karina
Nov 12 '05 #4
ka*****@iprimus.com.au (Karina) wrote in message news:<fc**************************@posting.google. com>...
tc*****@merseymail.com (Terry) wrote in message news:<38**************************@posting.google. com>...
ka*****@iprimus.com.au (Karina) wrote in message news:<fc**************************@posting.google. com>...
tc*****@merseymail.com (Terry) wrote in message news:<38**************************@posting.google. com>...
> I have created a Main Switchboard in Access 2000 and it has a button
> which opens a Form. I have set the form Properties Default View to
> Datasheet and this always opens in datasheet view.
>
> When I open the Form from the Main Switchboard it always opens in form
> view.
>
> Can this be changed so that it always opens in Datasheet View?
>
> Terry
Change the code of the OnClick event of your command button on the
Switchboard to the following:

DoCmd.OpenForm "YourFormName", acFormDS


Also see Access Help under OpenForm Method. There it explains the
different views for opening forms, by default it is acNormal (Form
view).

Karina


I put the following code in the OnClick Event for the command button
as you suggested:

DoCmd.OpenForm "Tets Taken", acFormDS

but it has no effect, the Form still opened in Form view. After
reading the Access Help on OpenForm Action I also tried usimg a Macro
to set the OpenForm Action View to Datasheet. This also had no effect.
The Form still opened in Form view.

Terry

I've tested this on different forms and it always works. I can't think
of why it wouldn't work for you. Maybe create a simple test form and
open it through a command button from another form with the above
code. If this works there might be a problem with your "Tets Taken"
form. That's all I can think of at the moment.

Karina


Will do. I'll get back as soon as I can. Must rush off now. Thanks.

Terry
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7232
by: ogilby1 | last post by:
Does Access allow a query to be listed on the switchboard? Does Access allow a table to be opened in datasheet view from the switchboard? I have an application where users enter new data, print...
1
12010
by: edself | last post by:
I have a form which displays a subform datasheet of information. I'd like to be able to quickly click on a particular record and open up another form showing more detailed information about that...
4
1656
by: KM | last post by:
Is there a way to have a query open the corresponding form rather than in datasheet view? I am creating a database that will run off of a switchboard as the users do not know anything about access...
1
1535
by: Simon Matthews | last post by:
Hope someone can help an Access beginner! I've just started keeping my surgical logbook on access and it's a simple flat-file affair. I have created several queries that will list cases...
1
1479
by: Gabryyl | last post by:
I have several forms created in Datasheet view, properties set to default and only allow Datasheet view. They open as instructed when opened from the database window but if opened from the...
3
3832
by: Cagey | last post by:
What I'm trying for: If this selection or if click on selection (highlighted line choice/ which ever selection change) w/in query's combo dropdown list box (on Switchboard), then Open in...
5
9627
by: joebin | last post by:
I accidentally deleted the switchboard item in form list. Anyone know where I can get my switchboard back? The Switchboard Items in table list is still there. I can also view all the switchboard...
9
3322
by: mtgrizzly52 | last post by:
Hi all, I've looked for an answer for this in lots of books, online in several discussion groups and have not found the answer which I feel may be very simple. What I want to do is have a...
2
9820
by: existential.philosophy | last post by:
This is a new problem for me: I have some queries that open very slowly in design view. My benchmark query takes about 20 minutes to open in design view. That same query takes about 20 minutes...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.