473,385 Members | 1,753 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,385 software developers and data experts.

Datasheet View

14
Hello,

I tried looking through some of the postings to see if anyone asked these questions before but I didn’t find any. I have 3 questions and I hope someone can help me out. I will write post them separately so it’s not that long.

First I have a main form which is pulling its data from [QryDepartments]. On this form I created a command button on the form based on [QryDepartment]; this allows people to view the query in datasheet view. I know access has its own datasheet view on the menu but I wanted to create my own. The problem I am having is if I do a filter on the form and then click on the command button to see it in datasheet view, it does not show the filter. I thought since it’s based on the same query it would work. Can someone please tell me what I need to do to get this to work.
Nov 17 '06 #1
3 2801
MMcCarthy
14,534 Expert Mod 8TB
Hello,

I tried looking through some of the postings to see if anyone asked these questions before but I didn’t find any. I have 3 questions and I hope someone can help me out. I will write post them separately so it’s not that long.

First I have a main form which is pulling its data from [QryDepartments]. On this form I created a command button on the form based on [QryDepartment]; this allows people to view the query in datasheet view. I know access has its own datasheet view on the menu but I wanted to create my own. The problem I am having is if I do a filter on the form and then click on the command button to see it in datasheet view, it does not show the filter. I thought since it’s based on the same query it would work. Can someone please tell me what I need to do to get this to work.
I know some of our other experts will have views on the solution to this.

However, essentially by using the forms filter features you are losing them when the form view changes to datasheet. Access probably preforms a refresh by default.

One solution would be to create your filter using code.
Nov 17 '06 #2
nico5038
3,080 Expert 2GB
Hi Bface,

I have a hard time to envision the working of the filter on your form.
Personally I use an unbound (not table related) mainform and add a datasheet subform to allow my users to filter.
Check my sample at
http://www.geocities.com/nico5038/Sa...tAction-97.zip
The datasheet hold in the OnCurrent event a statement to move the applied filter on the subform to the mainform making it visible for the user.

Getting the idea ?

Nic;o)
Nov 18 '06 #3
PEB
1,418 Expert 1GB
The proposal of Nico is good, but the default datasheet view from query also has a lot of advantages than using a form

All of my views are visualized by queries... Users do filters without problems and for them it is the best way, using datasheet /coz it is like Excel :)/

Maybe you don't want queriees coz u think that the user can see and modify the structure of your query?

I'm sure the user can't if you defend the buil-in functions in Access!

For me the query has more advantages than a form... There is advantages that i'm learning just now..

Hello,

I tried looking through some of the postings to see if anyone asked these questions before but I didn’t find any. I have 3 questions and I hope someone can help me out. I will write post them separately so it’s not that long.

First I have a main form which is pulling its data from [QryDepartments]. On this form I created a command button on the form based on [QryDepartment]; this allows people to view the query in datasheet view. I know access has its own datasheet view on the menu but I wanted to create my own. The problem I am having is if I do a filter on the form and then click on the command button to see it in datasheet view, it does not show the filter. I thought since it’s based on the same query it would work. Can someone please tell me what I need to do to get this to work.
Nov 18 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Keith Wilby | last post by:
I have a form which allows both form and datasheet views. My question is, is it possible to control the field (column) names in datasheet view? What happens at the moment is that the name is...
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...
1
by: sasan3 | last post by:
when I set visible=false, then entry is not visible in form view, but still shows up in datasheet view. How do I make a field not to show based on some condition in datasheet view? Tx.
5
by: Newbie | last post by:
I would like to display certain columns from a table on a form. One of my columns that I want to show is a Yes/No field so that my users can pick their players for a fantasy football week. If...
5
by: Bill | last post by:
This database has no forms. I am viewing an Access table in datasheet view. I'd like to execute a macro to execute a function (using "runcode"). In the function, I'll reading data from the record...
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...
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...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.