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

Query Mystery

418 256MB
I have a query that's built on 3 tables - and it works just fine but when I add a couple of more tables it stops working. I know this is not enough info to give me a suggestion. However, I am not sure how much detailed info is needed to get this resolved.

Any suggestions?
May 4 '09 #1
7 1263
ChipR
1,287 Expert 1GB
What do you mean by "stops working"? No records returned, an error, crashes your computer?
May 4 '09 #2
MNNovice
418 256MB
Well, I got no records.
May 4 '09 #3
ChipR
1,287 Expert 1GB
I assume that when you say "add a couple more tables" that you mean join with other tables on certain fields. Your best bet is to include one additional join at a time and observe the resulting records so that you can see exactly where you are eliminating all the records. You should be able to narrow it down to a particular field that is not Joining as you expect.
May 4 '09 #4
MNNovice
418 256MB
ChipR

Thanks. Yes, I identified the table and the field. But here is my problem, if I exclude that table, I cannot get one field to display that only exists in that table. Let me explain.

tblGrants has GrantID (PK auto) and GrantNo and GrantTitle. Total 3 fields. If I cannot join this table I have no other table that includes GrantNo or GrantTitle.

Does it make sense what I am trying to accomplish? Thanks for your help.
May 4 '09 #5
ChipR
1,287 Expert 1GB
I'm not sure exactly what you are trying to do, but I understand the need to include that table. The question is, Which field are you joining on, and why isn't it returning any records?
May 4 '09 #6
MNNovice
418 256MB
ChipR:

I solved it by creating a new query based on two other queries.

I have a new problem though. This time with the report. Thanks for your time.
May 4 '09 #7
NeoPa
32,556 Expert Mod 16PB
If you're still interested it may be an idea to post the SQL of the query before any attempt to add tblGrants, then specify which field(s) should be used to link it in. That way we could better understand what the problem is we need to look at.
May 7 '09 #8

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

Similar topics

3
by: Red | last post by:
In netscape bookmark files, there are lots of lines like this: <DT><A HREF="http://www.commondreams.org/" ADD_DATE="1091500674" LAST_CHARSET="ISO-8859-1" ID="rdf:#$uiYyb3">Common Dreams</A> I...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
14
by: jojoba | last post by:
Hi, I hope this post is ok for this group. Here's my deal: I have two computers on my LAN at home. One desktop. One laptop. Both computers are wireless enabled (and wired enabled too). I...
2
by: David | last post by:
Hi, I have the following SQL string, but cannot get it working: strSQL = "SELECT * FROM where . = '" & !!.! & "' and . = #" & !!.! & "#"
4
by: Owen Jenkins | last post by:
Hi, No-one replied to this when I sent it last week. Any bites out there today?? ----- My application allows users to create a new back end for separate purposes. It does this by using Make...
3
by: Galka | last post by:
Hello Why do you think a create table query doesn't create table from the following code? Set myQuery = myDB.QueryDefs("qryCON absent adults previous day log") myQuery.Execute If I execute...
8
by: HenHouse | last post by:
Hi folks; Here's a mystery for you. I've written an update query that runs every time my database opens and does a little housekeeping amongst the records. It updates a yes/no value in one table...
4
by: Lauren Quantrell | last post by:
I'm using a sproc to query a SQL Server table with about 300,000 rows, but when I query the table using a select query, it returns only exactly 50,000 rows. The front end is an Access 2000...
10
newnewbie
by: newnewbie | last post by:
Please help me with this mystery. I did the Union query to put together some tables...it ran once, showing me the data. Tried to run it for the second time and it could not find one of the tables. I...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.