C
Choli
Hi Folks,
I had two questions regarding a couple of queries I am trying to create.
1) I have a field call TBR which is a yes/no. What I am trying to have it
is, if another field in the same table has a certain phrase within the field
(can be at the beginning, middle, end & have other words also), the TBR box
will show a check mark.
This is what I have
=IIF([Field to Search for phrase", "Y", "N")
I might have too many comma's listed. When I tried it earlier I couldn't
get it to work, it was almost that I needed to put the word like (to use a
wildcard), but I am not sure where I would put that
My 2nd question is
I am trying to create an update query using a "replace" statement. However
the original data has ( ) around words, which I think is causing it not to
work right.
Here is what I have:
replace ([Field to search for], "This is the Name_Hi (Employee)", "This is
the Replacement Text_Hi (Manager))
The 2 )) at the end, one is to put a ) around the word & the other is to
close out the query
I also tried replace ([field to search for]," this is the name_hi*","This is
the replacement text" & wasn't able to get it to work either
Any help would be much appreciated on what I am missing or if I am using the
wrong commands..
Thanks in Advance
I had two questions regarding a couple of queries I am trying to create.
1) I have a field call TBR which is a yes/no. What I am trying to have it
is, if another field in the same table has a certain phrase within the field
(can be at the beginning, middle, end & have other words also), the TBR box
will show a check mark.
This is what I have
=IIF([Field to Search for phrase", "Y", "N")
I might have too many comma's listed. When I tried it earlier I couldn't
get it to work, it was almost that I needed to put the word like (to use a
wildcard), but I am not sure where I would put that
My 2nd question is
I am trying to create an update query using a "replace" statement. However
the original data has ( ) around words, which I think is causing it not to
work right.
Here is what I have:
replace ([Field to search for], "This is the Name_Hi (Employee)", "This is
the Replacement Text_Hi (Manager))
The 2 )) at the end, one is to put a ) around the word & the other is to
close out the query
I also tried replace ([field to search for]," this is the name_hi*","This is
the replacement text" & wasn't able to get it to work either
Any help would be much appreciated on what I am missing or if I am using the
wrong commands..
Thanks in Advance