Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-2008, 03:52 AM
Ray K
 
Posts: n/a
Saving filtered tables

I'm trying to do what should be a simple thing, but has become very
frustrating: save a filtered table as a new table.

I start with a table of about 200 records (of names and addresses) and I
filter (by selection) roughly 2/3 of the records out of the table. I
want to save the filtered table so I can use it with the label wizard to
make mailing labels.

I've tried saving the filtered table using the Save As command; that
doesn't work (the filter is lost and the entire 200 records are
present). Same thing happens if I try saving the abridged table as a
query; the filter is again lost.

What am I missing?

BTW, I'm using Access 2002 with W2K.

Thanks,

Ray
Reply With Quote
  #2 (permalink)  
Old 08-25-2008, 04:12 AM
Arvin Meyer [MVP]
 
Posts: n/a
Re: Saving filtered tables

"Ray K" <raykosXXX@optonline.net> wrote in message
news:48b21e77$0$20902$607ed4bc@cv.net...
> I'm trying to do what should be a simple thing, but has become very
> frustrating: save a filtered table as a new table.
>
> I start with a table of about 200 records (of names and addresses) and I
> filter (by selection) roughly 2/3 of the records out of the table. I want
> to save the filtered table so I can use it with the label wizard to make
> mailing labels.
>
> I've tried saving the filtered table using the Save As command; that
> doesn't work (the filter is lost and the entire 200 records are present).
> Same thing happens if I try saving the abridged table as a query; the
> filter is again lost.
>
> What am I missing?


What you are missing is a query. You aren't supposed to be manipulating the
data in the table if you want to maintain data integrity. Instead do all
your filtering and sorting with a query. If you save the query, you should
not be losing anything.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


Reply With Quote
  #3 (permalink)  
Old 08-25-2008, 04:14 AM
Chris O'C via AccessMonster.com
 
Posts: n/a
Re: Saving filtered tables

Once you have your filtered table the way you like it, right click in the top
left corner square (just before the first column name). It highlights all
the records in the dataset. Left click on copy on the pop up menu.

Create a new table in datasheet view. Right click on the top left corner
square and left click on paste. All the filtered records are in the new
table, but with column names like Field1, Field2, etc.

Chris
Microsoft MVP


Ray K wrote:
>I'm trying to do what should be a simple thing, but has become very
>frustrating: save a filtered table as a new table.
>
>I start with a table of about 200 records (of names and addresses) and I
>filter (by selection) roughly 2/3 of the records out of the table. I
>want to save the filtered table so I can use it with the label wizard to
>make mailing labels.
>
>I've tried saving the filtered table using the Save As command; that
>doesn't work (the filter is lost and the entire 200 records are
>present). Same thing happens if I try saving the abridged table as a
>query; the filter is again lost.
>
>What am I missing?
>
>BTW, I'm using Access 2002 with W2K.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200808/1

Reply With Quote
  #4 (permalink)  
Old 08-25-2008, 02:26 PM
Ray K
 
Posts: n/a
Re: Saving filtered tables

Chris,

My filtered table is 39 records (24 fields). I can copy them as you
said. When I create a new table by using "Create table by entering
data", the default opening table is 10 fields wide by 21 records. So if
I immediately paste, I lose the last 18 records and rightmost 14 fields.
I can insert extra columns (fields), but not records. If I hit Ctrl-+ to
insert a record, the number of records increases to 22, but as soon as I
click on any record, the number reverts to 21.

Ray

O'C via AccessMonster.com wrote:
> Once you have your filtered table the way you like it, right click in the top
> left corner square (just before the first column name). It highlights all
> the records in the dataset. Left click on copy on the pop up menu.
>
> Create a new table in datasheet view. Right click on the top left corner
> square and left click on paste. All the filtered records are in the new
> table, but with column names like Field1, Field2, etc.
>
> Chris
> Microsoft MVP
>
>
> Ray K wrote:
>
>> I'm trying to do what should be a simple thing, but has become very
>> frustrating: save a filtered table as a new table.
>>
>> I start with a table of about 200 records (of names and addresses) and I
>> filter (by selection) roughly 2/3 of the records out of the table. I
>> want to save the filtered table so I can use it with the label wizard to
>> make mailing labels.
>>
>> I've tried saving the filtered table using the Save As command; that
>> doesn't work (the filter is lost and the entire 200 records are
>> present). Same thing happens if I try saving the abridged table as a
>> query; the filter is again lost.
>>
>> What am I missing?
>>
>> BTW, I'm using Access 2002 with W2K.
>>

>
>

Reply With Quote
  #5 (permalink)  
Old 08-25-2008, 02:44 PM
Ray K
 
Posts: n/a
Re: Saving filtered tables

Arvin Meyer [MVP] wrote:
> "Ray K" <raykosXXX@optonline.net> wrote in message
> news:48b21e77$0$20902$607ed4bc@cv.net...
>
>> I'm trying to do what should be a simple thing, but has become very
>> frustrating: save a filtered table as a new table.
>>
>> I start with a table of about 200 records (of names and addresses) and I
>> filter (by selection) roughly 2/3 of the records out of the table. I want
>> to save the filtered table so I can use it with the label wizard to make
>> mailing labels.
>>
>> I've tried saving the filtered table using the Save As command; that
>> doesn't work (the filter is lost and the entire 200 records are present).
>> Same thing happens if I try saving the abridged table as a query; the
>> filter is again lost.
>>
>> What am I missing?
>>

>
> What you are missing is a query. You aren't supposed to be manipulating the
> data in the table if you want to maintain data integrity. Instead do all
> your filtering and sorting with a query. If you save the query, you should
> not be losing anything.
>

Arvin,

I used "Create query using wizard," selected the complete table (149
records) as the source, and selected all the fields for the new query.
Now I have a duplicate of my original table as a query. If I filter (by
selection) so just the desired 39 records remain, save, and then reopen
the query, all 149 records are still there.

The only way for me to make this work is to actually delete - not merely
filter out - the records that I don't want from the query and save it.
Then I can proceed with the label wizard.

Ray



Reply With Quote
  #6 (permalink)  
Old 08-25-2008, 06:27 PM
Chris O'C via AccessMonster.com
 
Posts: n/a
Re: Saving filtered tables

If your dataset is too big to fit in the default datasheet after you right
click to copy the filtered records, open notepad and paste the data there.
Save the file, then import it using the import text wizard. Use tab
delimited and keep the same primary key as the original table, don't let the
wizard add another ID column. It'll import all columns and rows in the text
file so you won't lose any.

Chris
Microsoft MVP


Ray K wrote:
>Chris,
>
>My filtered table is 39 records (24 fields). I can copy them as you
>said. When I create a new table by using "Create table by entering
>data", the default opening table is 10 fields wide by 21 records. So if
>I immediately paste, I lose the last 18 records and rightmost 14 fields.
>I can insert extra columns (fields), but not records. If I hit Ctrl-+ to
>insert a record, the number of records increases to 22, but as soon as I
>click on any record, the number reverts to 21.


--
Message posted via http://www.accessmonster.com

Reply With Quote
  #7 (permalink)  
Old 08-25-2008, 06:32 PM
Chris O'C via AccessMonster.com
 
Posts: n/a
Re: Saving filtered tables

I forgot to add that you need to check the check box for first row contains
column names when using the wizard.

Chris
Microsoft MVP


Chris O'C wrote:
>If your dataset is too big to fit in the default datasheet after you right
>click to copy the filtered records, open notepad and paste the data there.
>Save the file, then import it using the import text wizard. Use tab
>delimited and keep the same primary key as the original table, don't let the
>wizard add another ID column. It'll import all columns and rows in the text
>file so you won't lose any.
>
>Chris
>Microsoft MVP
>
>>Chris,
>>

>[quoted text clipped - 5 lines]
>>insert a record, the number of records increases to 22, but as soon as I
>>click on any record, the number reverts to 21.


--
Message posted via http://www.accessmonster.com

Reply With Quote
  #8 (permalink)  
Old 08-26-2008, 09:02 PM
Arvin Meyer [MVP]
 
Posts: n/a
Re: Saving filtered tables

You must save the filter as a query.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"Ray K" <raykosXXX@optonline.net> wrote in message
news:48b2b720$0$29501$607ed4bc@cv.net...
> Arvin Meyer [MVP] wrote:
>> "Ray K" <raykosXXX@optonline.net> wrote in message
>> news:48b21e77$0$20902$607ed4bc@cv.net...
>>
>>> I'm trying to do what should be a simple thing, but has become very
>>> frustrating: save a filtered table as a new table.
>>>
>>> I start with a table of about 200 records (of names and addresses) and I
>>> filter (by selection) roughly 2/3 of the records out of the table. I
>>> want to save the filtered table so I can use it with the label wizard to
>>> make mailing labels.
>>>
>>> I've tried saving the filtered table using the Save As command; that
>>> doesn't work (the filter is lost and the entire 200 records are
>>> present). Same thing happens if I try saving the abridged table as a
>>> query; the filter is again lost.
>>>
>>> What am I missing?
>>>

>>
>> What you are missing is a query. You aren't supposed to be manipulating
>> the data in the table if you want to maintain data integrity. Instead do
>> all your filtering and sorting with a query. If you save the query, you
>> should not be losing anything.
>>

> Arvin,
>
> I used "Create query using wizard," selected the complete table (149
> records) as the source, and selected all the fields for the new query. Now
> I have a duplicate of my original table as a query. If I filter (by
> selection) so just the desired 39 records remain, save, and then reopen
> the query, all 149 records are still there.
>
> The only way for me to make this work is to actually delete - not merely
> filter out - the records that I don't want from the query and save it.
> Then I can proceed with the label wizard.
>
> Ray
>
>
>



Reply With Quote
  #9 (permalink)  
Old 08-29-2008, 02:51 AM
Ray K
 
Posts: n/a
Re: Saving filtered tables

Arvin Meyer [MVP] wrote:
> You must save the filter as a query.
>

Thanks, I'm just learning about queries. But I'm stumped on what should
be a simple problem. I want to keep records that meet certain criteria
in two fields:

- Field1's cells can contain one of two possibilities: a blank (not a
space or zero) or a capital Y.
- Field2's cells can contain one of three possibilities: a blank (not a
space or zero), a capital Y, or capital SS.

I want to keep just those records that contain a Y in Field1 and a blank
(that is, not Y or not SS) in Field2.

I go to the design view of a new query, and in the Field1criteria I
enter y (or =Y or "Y"). Returning the the datasheet view, I see the
records with a Y in Field 1, and also those records that have a Y or SS
in Field2. The problem is I don't know how to enter the criteria in
Field2 to pick only the records with a blank. I've tried entering =""and
"". But that doesn't work; all the records disappear.

If I put no criteria in Field1, and put the Field2 criteria either as
<>"" I get just the records with Y or SS in Field2, as expected. Based
on that test, a pair of double-quotes seems to be the way of specifying
a blank. As mentioned above, if I try simply putting in Field2 criteria
as "" or =''", to retrieve just the records with blanks in Field2, all
the records disappear. So there is an inconsistency in the way Access
responds to a pair of double-quotes, depending on whether I want to
include or exclude records with blanks in Field2.

Thanks for the help.

Ray


Reply With Quote
  #10 (permalink)  
Old 08-29-2008, 01:07 PM
John Spencer
 
Posts: n/a
Re: Saving filtered tables

Try using IS NULL as the criteria in the query under field 2. When you "SEE"
blank the data can be a zero-length string, a bunch of spaces (not normal in
Access but possible), or Null. Null is very roughly equivalent to nothing.

To filter for Null values you need to use one of two operators.
-- Is Null (Find only records where the field contains Null)
or
-- Is Not Null (Find records where the field contains any value)

So it sound as if you need criteria of IS NULL for Field 2.

Field: Field2
Table: YourTable
Criteria: Is Null

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County

Ray K wrote:
> Arvin Meyer [MVP] wrote:
>> You must save the filter as a query.
>>

> Thanks, I'm just learning about queries. But I'm stumped on what should
> be a simple problem. I want to keep records that meet certain criteria
> in two fields:
>
> - Field1's cells can contain one of two possibilities: a blank (not a
> space or zero) or a capital Y.
> - Field2's cells can contain one of three possibilities: a blank (not a
> space or zero), a capital Y, or capital SS.
>
> I want to keep just those records that contain a Y in Field1 and a blank
> (that is, not Y or not SS) in Field2.
>
> I go to the design view of a new query, and in the Field1criteria I
> enter y (or =Y or "Y"). Returning the the datasheet view, I see the
> records with a Y in Field 1, and also those records that have a Y or SS
> in Field2. The problem is I don't know how to enter the criteria in
> Field2 to pick only the records with a blank. I've tried entering =""and
> "". But that doesn't work; all the records disappear.
>
> If I put no criteria in Field1, and put the Field2 criteria either as
> <>"" I get just the records with Y or SS in Field2, as expected. Based
> on that test, a pair of double-quotes seems to be the way of specifying
> a blank. As mentioned above, if I try simply putting in Field2 criteria
> as "" or =''", to retrieve just the records with blanks in Field2, all
> the records disappear. So there is an inconsistency in the way Access
> responds to a pair of double-quotes, depending on whether I want to
> include or exclude records with blanks in Field2.
>
> Thanks for the help.
>
> Ray
>
>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:33 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Loan | Credit Card | Company Reports | Loans | MPAA



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114