473,802 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1305
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********@hot mail.com> wrote in message news:<41******* *************** @news.newsgroup s.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
2949
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. One case where this happened to me today was in trying to store disconnected recordsets in a cache collection in case they are needed again later in the same session. When I retrieve the recordset from the collection, it's empty. On the other...
1
1436
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 array . I want to use the array repeatedly to provide information elsewhere in my app. When I first call on the Array values in 'columns' 1 to 5 in 'rows' 1 to i they are all present as expected. On the second time of calling on the array (ie...
4
5484
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 dropdownlist to the screen for selection. This continues until there are no children, and then it checks for a help article list based on that last selection and displays actual articles for display. Adding the controls and getting everything...
1
2328
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 disapeared. The read is done on a button click. I can read the selected items from the other controls in the repeater, demo page here
2
1208
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 sudden, once inside the datagrid tags, I can't use the same statement Any ideas on what is going on here? Thanks.
10
1716
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 (autopostback=false) and then click a "Build" button which builds a report. Most of the time there is no problem. But sometimes the following happens. I step through the code no problem, the session variables do not change. But, when examined after the the...
11
5385
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 it opens into a pop up page ccalled "comment_view.asp" which has a reply button. If anyone wants to reply to the message, they click reply and it takes them to the parent page (view.asp) where there is a form for them to fill in,and submit the...
8
2721
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 opening the ODBC link. Users would have no reason to delete a record, but one of our records turned up missing. Now, it's possible that a user may have accidentally deleted the record. But, since users don't have any reason to delete records,...
2
3031
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 for the retrieval of the excel data into a DataTable, which is bound to a GridView for previewing before saving to the Database. But, whenever I click on the save button, I lose the DataTable's data, so I lose the data I want to save to the...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10285
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10063
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9115
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.