DMAX Function Problem
I am trying to convert my program from access to vb6. I have successfully convert all my queries bar one to work in vb6. It doesnt work because it uses the DMAX function from access. Can you help me convert it.
UPDATE Trans SET Trans.[Count] = IIf(DMax("[Count]","Trans_Query")>[count],DMax("[Count]","Trans_Query"),[count]);
It updates the trans tables count column if the max value from the trans_query's count column is greater.
Any help would be great.
|