>Your command seems to have a syntax error, most likely missing brackets. Sergey just gave me another shorter version which worked. All the same thanks for your co-operation.
>
>Fred
No, I missed the semi-colon off the end of a line:
Select * from MyTable ;
where DateTimeField = csrMax.Max_TF
and CustID = lnChosenID
But like I asked Sergey, doesn't that soln. give you a list of different cust_ID vals, as opposed to the actual ONE that you want for the selected ID?
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.