J
JK
I feel like I've tried everything and I can't seem to make this work... I
want to display all records where the "LastPurchaseDate" is greater than 60
day's.
The ultimate goal is to display all accounts (and their list of loaned
equipment) if they have equipment on loan and if they have not purchased
product in over 60 or 90 day's using the "LastPurchaseDate" field.
here is the SQL ----> please help!! Thx...
SELECT Customers.CompanyName, Customers.BillingAddress, Customers.City,
Customers.StateOrProvince, Customers.PostalCode, Customers.PhoneNumber,
Customers.AccountNumber, Customers.SalesmanNumber, Customers.SalesmanName,
Customers.ManagerNumber, Customers.ManagerName, [SalesmanNumber] & " - " &
[SalesmanName] AS Salesperson, [ManagerNumber] & " - " & [ManagerName] AS
Manager, Equipment.FAKIT, Equipment.FAASID, Equipment.FADL01,
Equipment.FADAJ, Equipment.COUNCS, DateDiff("d",[LastPurchaseDate],Date()) AS
DateCompare, Format([LastPurchaseDate],"mm/dd/yyyy") AS PurchaseDate,
Customers.LastPurchaseDate
FROM Customers INNER JOIN Equipment ON Customers.AccountNumber =
Equipment.FAAN8
WHERE ((Not (Customers.SalesmanNumber) Is Null) AND (Not
(Customers.SalesmanName) Is Null) AND (Not (Equipment.FAKIT) Is Null) AND
((Format([LastPurchaseDate],"mm/dd/yyyy"))<Date()-60));
want to display all records where the "LastPurchaseDate" is greater than 60
day's.
The ultimate goal is to display all accounts (and their list of loaned
equipment) if they have equipment on loan and if they have not purchased
product in over 60 or 90 day's using the "LastPurchaseDate" field.
here is the SQL ----> please help!! Thx...
SELECT Customers.CompanyName, Customers.BillingAddress, Customers.City,
Customers.StateOrProvince, Customers.PostalCode, Customers.PhoneNumber,
Customers.AccountNumber, Customers.SalesmanNumber, Customers.SalesmanName,
Customers.ManagerNumber, Customers.ManagerName, [SalesmanNumber] & " - " &
[SalesmanName] AS Salesperson, [ManagerNumber] & " - " & [ManagerName] AS
Manager, Equipment.FAKIT, Equipment.FAASID, Equipment.FADL01,
Equipment.FADAJ, Equipment.COUNCS, DateDiff("d",[LastPurchaseDate],Date()) AS
DateCompare, Format([LastPurchaseDate],"mm/dd/yyyy") AS PurchaseDate,
Customers.LastPurchaseDate
FROM Customers INNER JOIN Equipment ON Customers.AccountNumber =
Equipment.FAAN8
WHERE ((Not (Customers.SalesmanNumber) Is Null) AND (Not
(Customers.SalesmanName) Is Null) AND (Not (Equipment.FAKIT) Is Null) AND
((Format([LastPurchaseDate],"mm/dd/yyyy"))<Date()-60));