Good day all!
The below SQL pulls a value called 'datee' from a open form. If 'datee' is later then June 1, 2011, I would like to replace it with the value 'June 1, 2011'. Is there a way of doing this?
Thank you
Kavy
<code>
SELECT ([Datee]-[Start])*[$perDay] AS [BTD Salary], [Amount]/([end]-[start]) AS [$perDay], BAccounts.Amount, BAccounts.Open, BVendors.ID, [Forms]![Budgets]![txtEDate] AS Datee
FROM BVendors INNER JOIN BAccounts ON BVendors.ID = BAccounts.BVendor
WHERE (((BAccounts.Open)=True) AND ((BVendors.ID)=1));
</code>
The below SQL pulls a value called 'datee' from a open form. If 'datee' is later then June 1, 2011, I would like to replace it with the value 'June 1, 2011'. Is there a way of doing this?
Thank you
Kavy
<code>
SELECT ([Datee]-[Start])*[$perDay] AS [BTD Salary], [Amount]/([end]-[start]) AS [$perDay], BAccounts.Amount, BAccounts.Open, BVendors.ID, [Forms]![Budgets]![txtEDate] AS Datee
FROM BVendors INNER JOIN BAccounts ON BVendors.ID = BAccounts.BVendor
WHERE (((BAccounts.Open)=True) AND ((BVendors.ID)=1));
</code>