DaniBoy
Registered User.
- Local time
- Today, 10:31
- Joined
- Nov 18, 2001
- Messages
- 174
Hello guys!!,
First of all, I love this new look, its great!!!!
I have a problem with a SQL code. I got the code from getting help here. Well here is the code.
SELECT Addresses.AddressID, WorkOrders.DateSent, WorkOrders.WorkorderID, WorkOrders.NewCartSize, WorkOrders.CartSize, Addresses.[Parcel#]
FROM Addresses INNER JOIN WorkOrders ON Addresses.AddressID=WorkOrders.AddressID
WHERE (((WorkOrders.DateSent)=(SELECT Max(WorkOrders1.DateSent) FROM WorkOrders AS WorkOrders1 WHERE Addresses.AddressID=WorkOrders1.AddressID) And (WorkOrders.DateSent) Between [Beginning Date] And [Ending Date]))
ORDER BY Addresses.AddressID, WorkOrders.WorkorderID, Addresses.[Parcel#];
this code is getting the max date from a table called WorkOrders the problem that I have is that the table name "WorkOrders" has been changed to "Work Orders". I have tried to change every thing that has "WorkOrders" to "Work Orders" but I get a syntax error when I try to save it.
Can someone tell me what am doing wrong? How can I fix this.
PS.WoW we can attach files now!!!! These is the best website for help!!!!
Thanks
DaniBoy
First of all, I love this new look, its great!!!!
I have a problem with a SQL code. I got the code from getting help here. Well here is the code.
SELECT Addresses.AddressID, WorkOrders.DateSent, WorkOrders.WorkorderID, WorkOrders.NewCartSize, WorkOrders.CartSize, Addresses.[Parcel#]
FROM Addresses INNER JOIN WorkOrders ON Addresses.AddressID=WorkOrders.AddressID
WHERE (((WorkOrders.DateSent)=(SELECT Max(WorkOrders1.DateSent) FROM WorkOrders AS WorkOrders1 WHERE Addresses.AddressID=WorkOrders1.AddressID) And (WorkOrders.DateSent) Between [Beginning Date] And [Ending Date]))
ORDER BY Addresses.AddressID, WorkOrders.WorkorderID, Addresses.[Parcel#];
this code is getting the max date from a table called WorkOrders the problem that I have is that the table name "WorkOrders" has been changed to "Work Orders". I have tried to change every thing that has "WorkOrders" to "Work Orders" but I get a syntax error when I try to save it.
Can someone tell me what am doing wrong? How can I fix this.
PS.WoW we can attach files now!!!! These is the best website for help!!!!
Thanks
DaniBoy