G
Guest
Hi
I have a table containing a Voucher_Number field and a Status field. The
Status field data type is text, and records contain values: Used, Expired,
Void, and (here's the problem) a text string of unpredictable length followed
by three spaces then Used e.g. "K7SWDS Used" or "25MAY05 Y6WWLI Used".
Is there a way of having a 'group by' query grouping these sort of strings
into strings that are just 'Used', so it would return a count of the number
of records in just the three categories Used; Expired; and Void? My
experiments with 'Like' in the query criteria haven't been successful.... I
could add a new field to the table, which contains the same data as the
'Status' field, but just 'cleaned', but if I can do what I want with a
'smart' query, that'd be preferable.
Any guidance gratefully accepted
Paul
I have a table containing a Voucher_Number field and a Status field. The
Status field data type is text, and records contain values: Used, Expired,
Void, and (here's the problem) a text string of unpredictable length followed
by three spaces then Used e.g. "K7SWDS Used" or "25MAY05 Y6WWLI Used".
Is there a way of having a 'group by' query grouping these sort of strings
into strings that are just 'Used', so it would return a count of the number
of records in just the three categories Used; Expired; and Void? My
experiments with 'Like' in the query criteria haven't been successful.... I
could add a new field to the table, which contains the same data as the
'Status' field, but just 'cleaned', but if I can do what I want with a
'smart' query, that'd be preferable.
Any guidance gratefully accepted
Paul