Expr1003 appears instead of field name

Michael's Knight

Registered User.
Local time
Yesterday, 22:37
Joined
Mar 17, 2014
Messages
27
I have windows 7 access 2013,
i had a query made, and wanted to add fields to it, so i went into the SQL and added several fields. Only the first one i entered didn't work and on the query is called "Expr1003" when in datasheet view. Its right in layout view, and even when i tried adding the same field in layout view, it made it "Expr1004". spelling is correct, in both source table and query, i don't know why this field doesn't work especially when the others did.
 
SELECT BookDetailsTable.BookTitle, BookDetailsTable.AuthorID, BookDetailsTable.FormatID, BookDetailsTable.Edition, BookDetailsTable.Edition, BookDetailsTable.DateOfEditionRelease, BookDetailsTable.Impression, BookDetailsTable.DateOfImpression, BookDetailsTable.PrinterCompanyID, BookDetailsTable.PublisherOfRecordID, BookDetailsTable.USRetail, BookDetailsTable.USWholesale, BookDetailsTable.PrintCost, BookDetailsTable.CanadaRetail, BookDetailsTable.CanadaWholesale, BookDetailsTable.UKRetail, BookDetailsTable.UKWholesale, BookDetailsTable.Edition, BookDetailsTable.[13DigitISBN], BookDetailsTable.[10DigitISBN], BookDetailsTable.BookSizeID, BookDetailsTable.ColorID, BookDetailsTable.DateOfCompletion, BookDetailsTable.[DatePublished/StreetDate], BookDetailsTable.CopyrightHolder, BookDetailsTable.ProjectStatus, BookDetailsTable.EuropeRetail, BookDetailsTable.EuropeWholesale, BookDetailsTable.USWholesaleDiscount, BookDetailsTable.CanadaWholesaleDiscount, BookDetailsTable.UKWholesaleDiscount, BookDetailsTable.EuropeWholesaleDiscount, BookDetailsTable.USManufactureCost, BookDetailsTable.EuropeManufactureCost, BookDetailsTable.UKManufactureCost, BookDetailsTable.CanadaManufactureCost, BookDetailsTable.Notes
FROM BookDetailsTable
ORDER BY BookDetailsTable.BookTitle, BookDetailsTable.Edition, BookDetailsTable.Edition, BookDetailsTable.Impression;
 
Last edited:
BookDetailsTable.Edition doesn't appear as "Edition" in the datasheet view. i added the highlighted sql, and the reason there are 2 "BookDetailsTable.Edition" is from trying to add one throught the layout view afterwards.
 
Remove one of the "BookDetailsTable.Edition," and see what happens.
 
When i initially changed it in SQL, i had the Expr... problem, so then i tried from the layout view, and got another Expr..., having now removed one it still gives me the Expr...
 
same happens after i've removed both and tried just from the layout view. there are no relationships directly to that field, i don't know what else could be confusing it.
 
Try removing one of the BookDetailsTable.Edition from the order by clause
 
Code:
'Change:-
ORDER BY BookDetailsTable.BookTitle, BookDetailsTable.Edition, BookDetailsTable.Edition, BookDetailsTable.Impression;

'To:-
ORDER BY BookDetailsTable.BookTitle, BookDetailsTable.Edition, BookDetailsTable.Impression;
 
i moved it, and now it says Expr1001, should i try remaking the field in the Table, and then try all this again in the query?
 
Extract your modified SQL again as per previous linked to instructions, BUT this time Place the code within Code Tags. See the advanced message reply box, look for a button >>> # <<< for which the tools tips say:- Wrap CODE TAGS around selected Text.

Recreating it from scratch is also a good idea, but I would like to see what's wrong.
 
here is the sql

SELECT BookDetailsTable.BookTitle, BookDetailsTable.Edition, BookDetailsTable.Impression, BookDetailsTable.AuthorID, BookDetailsTable.FormatID, BookDetailsTable.DateOfEditionRelease, BookDetailsTable.DateOfImpression, BookDetailsTable.PrinterCompanyID, BookDetailsTable.PublisherOfRecordID, BookDetailsTable.USRetail, BookDetailsTable.USWholesale, BookDetailsTable.PrintCost, BookDetailsTable.CanadaRetail, BookDetailsTable.CanadaWholesale, BookDetailsTable.UKRetail, BookDetailsTable.UKWholesale, BookDetailsTable.Edition, BookDetailsTable.[13DigitISBN], BookDetailsTable.[10DigitISBN], BookDetailsTable.BookSizeID, BookDetailsTable.ColorID, BookDetailsTable.DateOfCompletion, BookDetailsTable.[DatePublished/StreetDate], BookDetailsTable.CopyrightHolder, BookDetailsTable.ProjectStatus, BookDetailsTable.EuropeRetail, BookDetailsTable.EuropeWholesale, BookDetailsTable.USWholesaleDiscount, BookDetailsTable.CanadaWholesaleDiscount, BookDetailsTable.UKWholesaleDiscount, BookDetailsTable.EuropeWholesaleDiscount, BookDetailsTable.USManufactureCost, BookDetailsTable.EuropeManufactureCost, BookDetailsTable.UKManufactureCost, BookDetailsTable.CanadaManufactureCost, BookDetailsTable.Notes
FROM BookDetailsTable
ORDER BY BookDetailsTable.BookTitle, BookDetailsTable.Edition, BookDetailsTable.Edition, BookDetailsTable.Impression;
 
You haven't changed the Order By clause.....

HERE:-
ORDER BY BookDetailsTable.BookTitle, BookDetailsTable.Edition, BookDetailsTable.Edition, BookDetailsTable.Impression;

See previous instructions.
 
Like this... still Expr1001
SELECT BookDetailsTable.BookTitle, BookDetailsTable.Edition, BookDetailsTable.Impression, BookDetailsTable.AuthorID, BookDetailsTable.FormatID, BookDetailsTable.DateOfEditionRelease, BookDetailsTable.DateOfImpression, BookDetailsTable.PrinterCompanyID, BookDetailsTable.PublisherOfRecordID, BookDetailsTable.USRetail, BookDetailsTable.USWholesale, BookDetailsTable.PrintCost, BookDetailsTable.CanadaRetail, BookDetailsTable.CanadaWholesale, BookDetailsTable.UKRetail, BookDetailsTable.UKWholesale, BookDetailsTable.Edition, BookDetailsTable.[13DigitISBN], BookDetailsTable.[10DigitISBN], BookDetailsTable.BookSizeID, BookDetailsTable.ColorID, BookDetailsTable.DateOfCompletion, BookDetailsTable.[DatePublished/StreetDate], BookDetailsTable.CopyrightHolder, BookDetailsTable.ProjectStatus, BookDetailsTable.EuropeRetail, BookDetailsTable.EuropeWholesale, BookDetailsTable.USWholesaleDiscount, BookDetailsTable.CanadaWholesaleDiscount, BookDetailsTable.UKWholesaleDiscount, BookDetailsTable.EuropeWholesaleDiscount, BookDetailsTable.USManufactureCost, BookDetailsTable.EuropeManufactureCost, BookDetailsTable.UKManufactureCost, BookDetailsTable.CanadaManufactureCost, BookDetailsTable.Notes
FROM BookDetailsTable
ORDER BY BookDetailsTable.BookTitle, BookDetailsTable.Edition, BookDetailsTable.Impression;
 
Counting BookDetailsTable.BookTitle, as the first term, BookDetailsTable.Edition, as the second term, etc.....

Then the 2nd term and the 17th term are the same. Delete one....
 
Genius! That was it! I'll take this as a lesson to be thoroughly meticulous in the future... Thank you so much for your time!
 

Users who are viewing this thread

Back
Top Bottom