Gordon Hughes
asked on
Exclude Data from Query
Hi
I would like to create a query which will exclude data that has an "-" after the first word in a description field
ie:-
BEARING-BALL
OEM-
PUMP-
Gordon
I would like to create a query which will exclude data that has an "-" after the first word in a description field
ie:-
BEARING-BALL
OEM-
PUMP-
Gordon
ASKER
Hi
Not quite, I want to exclue the data record where the description starts with a word proceeded with the "-"
Hope this makes sense
Gordon
Not quite, I want to exclue the data record where the description starts with a word proceeded with the "-"
Hope this makes sense
Gordon
Then you could use:
.. Where InStr([Description], "-") <= InStr([Description], " ")
/gustav
.. Where InStr([Description], "-") <= InStr([Description], " ")
/gustav
ASKER
Hi
Trying you suggestion it comes up with invalid syntex
Gordon
Trying you suggestion it comes up with invalid syntex
Gordon
Of course. That what just the criteria part.
Don't know your query. A minimum would be:
Select * From tblYourTable Where InStr([Description], "-") <= InStr([Description], " ")
Replace with your actual table and field name.
/gustav
Don't know your query. A minimum would be:
Select * From tblYourTable Where InStr([Description], "-") <= InStr([Description], " ")
Replace with your actual table and field name.
/gustav
ASKER
Hi
I put this as a SQL statement Ok
But it is not excluding where the first work is proceeded with the -
ie OEM-
Gordon
I put this as a SQL statement Ok
But it is not excluding where the first work is proceeded with the -
ie OEM-
Gordon
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi
It works
Thanks
Gordon
It works
Thanks
Gordon
ASKER
Thanks
You are welcome!
/gustav
/gustav
BEARING BALL-
?
/gustav