C
Contro
Hi Guys,
I'm stuck on trying to find a row of data which has a field containing
a year specified by the user.
My code is:
SELECT Applications.[Surname at exam], Applications.[Surname now],
Applications.[First Name(s)], Applications.[Date of Birth],
Applications.[Date Application Received], Applications.[Qualification
Type(s)], Applications.[Year(s) of Qualification],
Applications.[Statement/Cert Letter/], Applications.[Amount Received],
Applications.[Method of Payment], Applications.ID,
Applications.[Outline Sent], Applications.[U Letter Sent],
Applications.[Despatch Date], Applications.[Other Information]
FROM Applications
WHERE Applications.[Year(s) of Qualification] LIKE "*7#*";
The bottom line is the main part. Basically, this will find any year
that is in the 70's (in formats "1975", "75", "65,86,72"). But I want
the user to be able to specify the decade...but when I change the last
line to
WHERE Applications.[Year(s) of Qualification] LIKE "*[choice]#*";
it obviously doesn't recognise that it's a variable, but thinks the
[choice] is part of the string...I've tried using brackets in various
places and things like that, but nothing works! Please help!
Thank you very much in advance. Your help will be hugely appreciated!
))))
Contro.
I'm stuck on trying to find a row of data which has a field containing
a year specified by the user.
My code is:
SELECT Applications.[Surname at exam], Applications.[Surname now],
Applications.[First Name(s)], Applications.[Date of Birth],
Applications.[Date Application Received], Applications.[Qualification
Type(s)], Applications.[Year(s) of Qualification],
Applications.[Statement/Cert Letter/], Applications.[Amount Received],
Applications.[Method of Payment], Applications.ID,
Applications.[Outline Sent], Applications.[U Letter Sent],
Applications.[Despatch Date], Applications.[Other Information]
FROM Applications
WHERE Applications.[Year(s) of Qualification] LIKE "*7#*";
The bottom line is the main part. Basically, this will find any year
that is in the 70's (in formats "1975", "75", "65,86,72"). But I want
the user to be able to specify the decade...but when I change the last
line to
WHERE Applications.[Year(s) of Qualification] LIKE "*[choice]#*";
it obviously doesn't recognise that it's a variable, but thinks the
[choice] is part of the string...I've tried using brackets in various
places and things like that, but nothing works! Please help!
Thank you very much in advance. Your help will be hugely appreciated!

Contro.