Query that retuns nothing - HELP :-)

B

Bob

I am having a very difficult time with a query.. It work before and I have
taken out any changes that I made and now it does not work. HELP please

This is the basic select query that selects data.

SELECT F4F_SubStudioDetails.Date, F4F_SubStudioDetails.Studio,
F4F_SubStudioDetails.Net_Tot
FROM F4F_SubStudioDetails
WHERE (((F4F_SubStudioDetails.Date)=#3/16/2008#));

When I ad another table that is joined by the fields [Studio] I get no
results at all.. The join typ is one-to-many as the table STUDIOS has all of
the personal data for the Data table SubStudioDetails.

SELECT F4F_SubStudioDetails.Date, F4F_SubStudioDetails.Studio,
F4F_SubStudioDetails.Net_Tot
FROM studios INNER JOIN F4F_SubStudioDetails ON studios.Studio =
F4F_SubStudioDetails.Studio
WHERE (((F4F_SubStudioDetails.Date)=#3/16/2008#));

Please tell me what I am doing wrong.. This is driving me crazy..

Like I said it worked before and I have no idea what I did to screw it up.

Thanks in advance bob
 
J

John W. Vinson

I am having a very difficult time with a query.. It work before and I have
taken out any changes that I made and now it does not work. HELP please

This is the basic select query that selects data.

SELECT F4F_SubStudioDetails.Date, F4F_SubStudioDetails.Studio,
F4F_SubStudioDetails.Net_Tot
FROM F4F_SubStudioDetails
WHERE (((F4F_SubStudioDetails.Date)=#3/16/2008#));

When I ad another table that is joined by the fields [Studio] I get no
results at all.. The join typ is one-to-many as the table STUDIOS has all of
the personal data for the Data table SubStudioDetails.

SELECT F4F_SubStudioDetails.Date, F4F_SubStudioDetails.Studio,
F4F_SubStudioDetails.Net_Tot
FROM studios INNER JOIN F4F_SubStudioDetails ON studios.Studio =
F4F_SubStudioDetails.Studio
WHERE (((F4F_SubStudioDetails.Date)=#3/16/2008#));

Please tell me what I am doing wrong.. This is driving me crazy..

Like I said it worked before and I have no idea what I did to screw it up.

Thanks in advance bob

For one thing, the fieldname Date is a reserved word for the built in "today's
date" function Date(). For another - might F4F_SubStudioDetails.Date contain a
time portion? If what's stored in the table is #3/16/2008 11:42:16am# you will
not get a match. You'll need a criterion such as

WHERE F4F_SubStudioDetails.Date>=[Enter date:] AND F4F_SubStudioDetails.Date <
DateAdd("d", 1, [Enter date:])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Using Espresions in criteria 2
perform INNER JOIN on query results 2
can't find the right query 0
SUM in a UNION query 2
HELP - selecting 0
Query crosses 3 tables 2
Not Equal To 1
Query Help 5

Top