Tracy said:
Hi Dirk
I built it using the query in design, I am not a programmer. This is
the sql code it has created:
SELECT [Main Project Table].[Customer Name], [Main Project
Table].[Project ID], [Main Project Table].[Project/Job description],
[Main Project Table].[Date Arrived], [Main Project Table].[Project
Name], [Main Project Table].[Project Manager], [Resource
Scheduler].Status, [Resource Scheduler].[Status Notes], [Resource
Scheduler].[Colleague Name]
FROM [Main Project Table] INNER JOIN [Resource Scheduler] ON [Main
Project Table].[Project ID] = [Resource Scheduler].[Project ID]
WHERE ((([Main Project Table].[Customer Name]) Like [*]));
The WHERE clause is wrong. Corrected for syntax, it would be:
WHERE ((([Main Project Table].[Customer Name]) Like "*"));
(and it has unnecessary extra parentheses that the Access query designer
likes to add, but they are not the problem).
However, there's no real point in saying ' Like "*" ', because that just
matches everything, in which case you don't need the WHERE clause at
all. Try just this:
SELECT
[Main Project Table].[Customer Name],
[Main Project Table].[Project ID],
[Main Project Table].[Project/Job description],
[Main Project Table].[Date Arrived],
[Main Project Table].[Project Name],
[Main Project Table].[Project Manager],
[Resource Scheduler].Status,
[Resource Scheduler].[Status Notes],
[Resource Scheduler].[Colleague Name]
FROM
[Main Project Table]
INNER JOIN
[Resource Scheduler]
ON
[Main Project Table].[Project ID] =
[Resource Scheduler].[Project ID];
Your use of spaces in your table and field names forces all those names
to be surrounded with brackets, as you see. In future designs, you'll
probably find it easier to avoid using spaces and non-alphanumeric
characters (like "/") in table and field names.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)