473,385 Members | 1,973 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.

why did I lose some rows?

I have a main table of rows, and I created a query to put the customer
ID code and the product ID code for each row. But in the query results
I have a substantially less number of rows than in my original table.
There should be the same number of rows as in the original as all I
added were the codes.

Does anyone know what happened to the rows and how is the best way that
I can determine what's missing?

Also, is there some access tool like the excel autofilter so I could get
a quick view of what's in each field?

Thanks.

Matthew Kramer

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #1
3 1289
Matthew Kramer wrote:
I have a main table of rows, and I created a query to put the customer
ID code and the product ID code for each row. But in the query results
I have a substantially less number of rows than in my original table.
There should be the same number of rows as in the original as all I
added were the codes.

Does anyone know what happened to the rows and how is the best way that
I can determine what's missing?

Also, is there some access tool like the excel autofilter so I could get
a quick view of what's in each field?

Thanks.

Matthew Kramer

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Let's say you had a table called Table1. If I open it, it has 1000
records. If I create a query and enter
Select * from Table1
I should expect 1000 records.

If I enter
Select * from Table1 Where CustomerID Is Null
and 100 records don't have customer id fields filled in, I should expect
100 records.

Now, I may have two tables, Table1 and Employee. I create a
relationship line between Table1 and Employee based on EmployeeID. If
all records have an employee record, I should get back all records from
Table1. However, if the employeeID is blank, I'll get a return of only
the records that have a matching employee record. In this case, I would
dbl-click on the relationship line in the query builder and select the
option "Select all records and Table1 and those that match in Employee"
I will now get all records since it doesn't care whether or not there is
a matching Employee record.

You probably have a criteria that filters or a relationship link to change.
Nov 13 '05 #2
Matthew Kramer <mk********@hotmail.com> wrote in message news:<41**********************@news.newsgroups.ws> ...
I have a main table of rows, and I created a query to put the customer
ID code and the product ID code for each row. But in the query results
I have a substantially less number of rows than in my original table.
There should be the same number of rows as in the original as all I
added were the codes.

Does anyone know what happened to the rows and how is the best way that
I can determine what's missing?

Also, is there some access tool like the excel autofilter so I could get
a quick view of what's in each field?

Thanks.

Matthew Kramer

That's the nature of an inner join. If you want a "lossless" join,
you have to do an outer join. And, unlike Oracle for example, you
cannot create a full outer join in Access. Got questions, read the
help file on joins in queries.
Nov 13 '05 #3
Thanks for the explanations. - Matthew

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #4

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

Similar topics

6
by: Steve Jorgensen | last post by:
I keep having problems in which ADO disconnected recordset work under some circumstances, but lose all their data at other times, having no rows or fields, though the recordset object still exists....
1
by: Jack | last post by:
Hi there, I have an multi-dimensional array (5,i) (5 'columns', i 'rows') where i is the number of records in the recordset that I use to populate the array and hence the number of 'rows' in the...
4
by: DotNetJunky | last post by:
I have built a control that runs an on-line help system. Depending on the category you selected via dropdownlist, it goes out and gets the child subcategories, and if there are any, adds a new...
1
by: Fraggle | last post by:
I have a repeater with controls added at run time. the <template> also contains a <asp:textbox that is made visible on some repeater elements. when I come to read the text info out it has...
2
by: jm | last post by:
I have datagrid. Inside the template columms there is a textbox. It has an id. When the textbox wasn't inside the datagrid tags, I could reference with order_id.text = "some text" but all of a...
10
by: Michael SL | last post by:
I have been using session variables in my asp.net application without any trouble. But now in a very specific case I am losing them. On one of my pages I set a date in a dropdownlist...
11
by: karen987 | last post by:
I have a web page which used to work fine until i added a rich text editor. the pages are in ASP and it is a news weblog, with a comments section where people click the headline of a comment and...
8
by: Neil | last post by:
We are running SQL 7 with a front end that links to the tables through ODBC. In our main table, the user has no way to delete a record through the interface, though it is possible to delete it by...
2
by: chike_oji | last post by:
Please can someone help me. I am writing a web application, that allows for the upload of an excel sheet into the database. I have an upload button and a save button. The upload button allows...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.