asp_learner
04-08-2002, 12:04 PM
Hi,
I am having trouble in the following query
to make the date query a date. That is because I am doing different things, I am selecting first date as date1 and Last Date as Date 2. If the second date equals first date,it is null. Doing that makes the field a text field.
Do you have any suggestions?
SELECT future2002.[Store_ No] AS Store, First(future2002.Date) AS First, Max(future2002.Date) AS Last, IIf([Last]=[First],"",[Last]) AS Second INTO [Future Dates]
FROM future2002
GROUP BY future2002.[Store_ No];
I am having trouble in the following query
to make the date query a date. That is because I am doing different things, I am selecting first date as date1 and Last Date as Date 2. If the second date equals first date,it is null. Doing that makes the field a text field.
Do you have any suggestions?
SELECT future2002.[Store_ No] AS Store, First(future2002.Date) AS First, Max(future2002.Date) AS Last, IIf([Last]=[First],"",[Last]) AS Second INTO [Future Dates]
FROM future2002
GROUP BY future2002.[Store_ No];