S
SqlDope
Hello, I wonder If any one can help me.
Windows XP Access 2003
I keep databases of headstone inscriptions.
My table has the fields: ID, Surnames, Date of birth, Date of death,
Inscription ans a few others.
The Inscription field contains the whole inscription as read from the
headstone with "\" denoting a new line.
Two (simplified) examples:
(1) John\Son Of\Mary And Henry ORD\Died 24th June 1786\Aged 42 Years
(2) Harry SMITH\For 21 Years Secretary Of The Order Of Buffulows Died ......
Note that (1) has the Surname ORD and (2) contains the word Order.
I wish to select all records that have the surname ORD but none with the
word Order (unless they also contain Surname ORD).
Here is my first query;
SELECT Inscription FROM Cemetery WHERE Inscription LIKE "*ORD*";
But this also selects inscription (2)
Second Attempt
SELECT Inscription FROM Cemetery WHERE Inscription LIKE (StrComp 0,"*ORD*")
But of course it doesn`t work
Any help appreciated
Thanks And Regards
Windows XP Access 2003
I keep databases of headstone inscriptions.
My table has the fields: ID, Surnames, Date of birth, Date of death,
Inscription ans a few others.
The Inscription field contains the whole inscription as read from the
headstone with "\" denoting a new line.
Two (simplified) examples:
(1) John\Son Of\Mary And Henry ORD\Died 24th June 1786\Aged 42 Years
(2) Harry SMITH\For 21 Years Secretary Of The Order Of Buffulows Died ......
Note that (1) has the Surname ORD and (2) contains the word Order.
I wish to select all records that have the surname ORD but none with the
word Order (unless they also contain Surname ORD).
Here is my first query;
SELECT Inscription FROM Cemetery WHERE Inscription LIKE "*ORD*";
But this also selects inscription (2)
Second Attempt
SELECT Inscription FROM Cemetery WHERE Inscription LIKE (StrComp 0,"*ORD*")
But of course it doesn`t work
Any help appreciated
Thanks And Regards