D
DataGuy
Hello!
My query is designed to return a list of the most recently received CAD files for all part numbers in a certain product line.
In SQL, it looks like this:
SELECT Last([CAD LOG].[Transfer Date]) AS [LastOfTransfer Date1], [CAD LOG].[PART #], [CAD LOG].CompanyName, Last([CAD LOG].[LTD Filename]) AS [LastOfLTD Filename], Last([CAD LOG].[Revision Date (if known)]) AS [LastOfRevision Date (if known)], Last([CAD LOG].[Revision Level or Revision #]) AS [LastOfRevision Level or Revision #], Last([CAD LOG].[Data Used for Tooling?]) AS [LastOfData Used for Tooling?], Last([CAD LOG].[Picture Link 1]) AS [LastOfPicture Link 1]
FROM [CAD LOG]
WHERE ((([CAD LOG].[Program #])=[Enter Program #, as 'PGM#######']) AND (([CAD LOG].[To or From])="From"))
GROUP BY [CAD LOG].[PART #], [CAD LOG].CompanyName
HAVING ((([CAD LOG].CompanyName)=[Enter Company Name data is from]))
ORDER BY Last([CAD LOG].[Transfer Date]) DESC;
It seemed to work perfectly, until I noticed that it missed a record. I deleted the record it missed, and re-entered it. Then I re-ran my query. It still would not show up. I went through each feild and checked spelling, case, everything about the record. Still, I cannot understand why it would not be included in the results.
I tried removing feilds from the query 1 at a time to see if one of them was throwing off the results - no luck.
I created the query in 'Design View' which I somewhat understand. I included the SQL code (which I don't really understand) because it seems that people are able to help better using that on this newsgroup.
Thank you,
Dataguy
My query is designed to return a list of the most recently received CAD files for all part numbers in a certain product line.
In SQL, it looks like this:
SELECT Last([CAD LOG].[Transfer Date]) AS [LastOfTransfer Date1], [CAD LOG].[PART #], [CAD LOG].CompanyName, Last([CAD LOG].[LTD Filename]) AS [LastOfLTD Filename], Last([CAD LOG].[Revision Date (if known)]) AS [LastOfRevision Date (if known)], Last([CAD LOG].[Revision Level or Revision #]) AS [LastOfRevision Level or Revision #], Last([CAD LOG].[Data Used for Tooling?]) AS [LastOfData Used for Tooling?], Last([CAD LOG].[Picture Link 1]) AS [LastOfPicture Link 1]
FROM [CAD LOG]
WHERE ((([CAD LOG].[Program #])=[Enter Program #, as 'PGM#######']) AND (([CAD LOG].[To or From])="From"))
GROUP BY [CAD LOG].[PART #], [CAD LOG].CompanyName
HAVING ((([CAD LOG].CompanyName)=[Enter Company Name data is from]))
ORDER BY Last([CAD LOG].[Transfer Date]) DESC;
It seemed to work perfectly, until I noticed that it missed a record. I deleted the record it missed, and re-entered it. Then I re-ran my query. It still would not show up. I went through each feild and checked spelling, case, everything about the record. Still, I cannot understand why it would not be included in the results.
I tried removing feilds from the query 1 at a time to see if one of them was throwing off the results - no luck.
I created the query in 'Design View' which I somewhat understand. I included the SQL code (which I don't really understand) because it seems that people are able to help better using that on this newsgroup.
Thank you,
Dataguy