473,698 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Blank Query Results

14 New Member
I need help in finding out why I am not getting any data in my query.

When I select all the fields in one table in my query grid and run it, the data is there. However, when I try to do it using to related tables and pull fields from both table in my query rid and run the query, data from both related tables are not showing in my query datasheet. What is the problem? The relationship line in my query is showing that the table are linked.

Thanks for your response in advance.
Feb 24 '09 #1
16 27009
ChipR
1,287 Recognized Expert Top Contributor
The relationship line means you are doing an inner join on the linked field, so only records that are equal in those fields from both tables will be shown.
Feb 24 '09 #2
BNW
14 New Member
@ChipR

Thanks for responding.

P.S. I have enough data in the fields and some are null fields. When I run the query and adding my criterias, the data should still show in my query datasheet. It is not doing it.
Feb 24 '09 #3
ChipR
1,287 Recognized Expert Top Contributor
Did you run the query first without the criteria to verify that you have some records to apply the criteria to?
Feb 24 '09 #4
BNW
14 New Member
@ChipR
Yes, I did one table at a time. The results showed.

But when I combined both tables in my query grid and selected the fields I wanted from both tables to be in my datasheet, none of the data shows in my datasheet from both tables after I ran the query. However, the relationship is established.
Feb 24 '09 #5
ChipR
1,287 Recognized Expert Top Contributor
Did you run the query with both tables and no criteria? I've had this happen when I expected NULL to match up with "" (empty string), and it didn't. I changed all the NULLs to blanks and then the join produced the results I expected. Double check to make sure the line between your tables in the query is between the two fields that have equal values in them.
Feb 24 '09 #6
BNW
14 New Member
@ChipR

Yes, I ran the table with a criteria in it. It still didn't give me not results (empty data). I will probably need to check to see if the relationship line between both of my fields have equal values. I'll let you know. Thanks
Feb 24 '09 #7
BNW
14 New Member
@ChipR

I checked my related fields in my table. The primary table have both Letter and numbers in the field and the Foreign table have regular letters (it is a combox box field in which I can select the values from the list). However, both of them have the same data types.
Feb 24 '09 #8
ChipR
1,287 Recognized Expert Top Contributor
Your query is only going to have results when the values in the two related fields are exactly equal. It sounds like your two fields are not actually related at all.
Feb 24 '09 #9
BNW
14 New Member
@ChipR
Here is an example.

Primary Key Field (CustomerNumber ) value is "AC001"

Foreign Key Field (CustomerNumber ) value is "All Creatures". This is a lookup field that have the value list box.

I'm trying to rebuild this database from my Access 2000 Bible reference/text book called "Mountain Hospital Animal Database" and that's what the relationship is showing for these two tables. Both of these fields have the Text datatype.
Feb 24 '09 #10

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

Similar topics

12
3279
by: dan glenn | last post by:
Hi. I'm finding that if I have text entered into a <textarea ...> </textarea> in a form, and that text has leading blank lines (with no spaces or anything else), that when I retrieve the entered text, I lose the leading blank line. Each time it goes through a post any top-leading blank line is lost. Only one- if I have several blank lines in a row at the top, only the first is lost. (If the top blank line has a single space, it's handled...
2
3431
by: jaysonsch | last post by:
Hello! I am having some problems with a database query that I am trying to do. I am trying to develop a way to search a database for an entry and then edit the existing values. Upon submit, the new values are updated in all corresponding tables (the function of the pages in question). However, on the page that does the DB update, I also want to do some checks on the data before performing the update. Now, the problem that I am...
3
1387
by: feel_free_to_spam_me | last post by:
Hi. I'm a sorta novice ASP programmer, so I sure could use some help from of you more experienced gurus.... I've written an ASP page that pulls all records from a table. My query is 'SELECT * FROM teacher ORDER by Class' It is working fine... sorta. The table has about 20 records, but only 5 have an entry in the 'Class' field. The 15 records with the blank class field show up first, then the other 5 records. Is it possible to have...
1
4890
by: Andy | last post by:
I have a simple query that basically pulls in an employee's name, and 3 different scores. I am trying to make a report where each employee shows up on a different page, and the 3 scores are shown in a bar graph. The simple bar graph is set up like I need it to, but when I link the master/child fields, the graph turns out blank. I remove the link, and the full graph shows up. I want the graph to show that one employee's scores on that page,...
6
7120
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3 fields on it: Date (DateSpan1 and DateSpan2), Originator, and GroupName. I have added a button that triggers a query and uses those fields as its parameter criteria to populate a form. The user must be allowed to either enter all of the
1
5668
by: John Baker | last post by:
Hi; Dumb question, but I have a query and i want to accept the record if a field is blank. I have tried criteria of ="", isempty(Fieldame) and a rich variety of other things with no joy. How do I accept a record in a query if a specific field is blank? Thanks John Baker
0
2151
by: visionstate | last post by:
Hi there, I have a form which has 2 text boxes, a combo box and a sub form in it (which reads from a query. The query reads from the table). On load, I would like the fields in the text boxes and combo box to be become blank. If I use the "" or 'null' instruction then this in turn makes the corresponding field in the sub form blank which in turn makes the query field blank and the table field blank! If I then change the combo box option,...
11
4989
by: techjohnny | last post by:
Ok, I posted earlier about this, a blank php page. I've enabled logging ALL in the php.ini, but nothing. If I change the name of the db in the include file, I get an error message, so I guess this means it's connecting to the mysql db. I've included the first couple lines of code for this page: index.php <?php
4
3568
by: ArizonaJohn | last post by:
Hello, The code below works great. The user enters a name into an HTML form, the code looks up a table with that name, and then that table is displayed. I am trying to use pagination with it, and the pagination almost works. The first page of the pagination works fine, but when I click on one of the links for one of the next pages, the page is blank. I have seen people mention this problem, and they have been told that a variable is...
0
8680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9169
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...
0
9030
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8899
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
8871
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
7738
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...
0
4371
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
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2007
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.