473,382 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Opening form in datasheet view

I learned recently that I should never allow end users access to my
tables, that if I want them to see that data in that format I should
show them a datasheet form. I created a form for this purpose. When I
double click on the form in the database window, it comes up in
datasheet view. But I created a button in my switchboard to bring up
this form, and it shows up with only one record showing, not the whole
table. Is there some kind of special command to get it to do this?
Right now, the button command is:

DoCmd.OpenForm "frmdtsCWEmployeeAll"

Why doesn't this open the form the same way I see it when I double
click on the form?
Thanks.

Dec 21 '05 #1
2 49613
On 21 Dec 2005 14:42:41 -0800, davegb wrote:
I learned recently that I should never allow end users access to my
tables, that if I want them to see that data in that format I should
show them a datasheet form. I created a form for this purpose. When I
double click on the form in the database window, it comes up in
datasheet view. But I created a button in my switchboard to bring up
this form, and it shows up with only one record showing, not the whole
table. Is there some kind of special command to get it to do this?
Right now, the button command is:

DoCmd.OpenForm "frmdtsCWEmployeeAll"

Why doesn't this open the form the same way I see it when I double
click on the form?
Thanks.


To open a form from an event, regardless of the form's default view
setting, you MUST specify datasheet view:

DoCmd.OpenForm "frmdtsCWEmployeeAll", acFormDS

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Dec 22 '05 #2

fredg wrote:
On 21 Dec 2005 14:42:41 -0800, davegb wrote:
I learned recently that I should never allow end users access to my
tables, that if I want them to see that data in that format I should
show them a datasheet form. I created a form for this purpose. When I
double click on the form in the database window, it comes up in
datasheet view. But I created a button in my switchboard to bring up
this form, and it shows up with only one record showing, not the whole
table. Is there some kind of special command to get it to do this?
Right now, the button command is:

DoCmd.OpenForm "frmdtsCWEmployeeAll"

Why doesn't this open the form the same way I see it when I double
click on the form?
Thanks.


To open a form from an event, regardless of the form's default view
setting, you MUST specify datasheet view:

DoCmd.OpenForm "frmdtsCWEmployeeAll", acFormDS

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail


Thanks! Works great now.

Dec 22 '05 #3

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

Similar topics

3
by: Kent Eilers | last post by:
I want to follow naming conventions for my controls - i usually prefix combo boxes with "cbo". When a form is in datasheet view however i do not want the user to see the 'cbo' prefix in front of...
4
by: Terry | last post by:
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...
2
by: Georges Heinesch | last post by:
Hi: I have a tables in relationship to each other. When I open the main table (table 1), I see a "+" at the very left of every record. Clicking on the "+" expands the data of the linked table...
1
by: Yuki | last post by:
I am trying to find out if I can have a specific record that has been selected in a list box be opened in datasheet view. I can't seem to find where this can happen or what I need to use to make...
2
by: AgentX | last post by:
Is it possible, In a datasheet view subform, to change the backgound color based on the value in a particular field? For example if the field is Yes/No, have the background color red for No and...
1
by: gnews | last post by:
I'm learning Access (2002) as I go, but I can't find how to open a form from a datasheet view. I want to be able to view records in the datasheet and click on a link to open a form to allow me...
15
by: HyBry | last post by:
I have send mail button assigned to datasheet in subform. Works fine if I want to send mail to one person, but I want it to work if I have multiple selection as well. code I have now is ...
2
by: Alan Forsyth | last post by:
That rather long subject says it. In Access97 running on XP - I want to display a Maximized size Form01, then open a Restore size Datasheet View Form02 on top of the first Form. PopUp won't give...
8
by: ncsthbell | last post by:
I have created a form in access 2007 and have the property set to 'datasheet view'. The record source is a query that displays duplicate rows. I want my user to be able to highlight a row and use...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.