R
Rone
I'm having trouble with the instr function.
I have a report that is based off of a query. I want to get everything to
the Left of a "," in a field called "initial_terms" and display that result
in the report, but I keep getting an error.
I've tried the following in the Control Source for the field:
=instr(1,[initial_terms],",",vbtextcompare) ---------> This generates an error
=instr(1,"Aaron","a",vbtextcompare) ----------->this works fine.
=Left_string([initial_terms]) --------> I wrote a function to use the instr
and return the value, but this also returned an error.
=Left_string("Aaron")---------> If I place a string in there the function
works just fine.
So, my two problems are this. When I try to use the name of the field for
the "instr" function or the "Left_string" function I wrote, I get problems.
Any ideas on how to solve this problem will be appreciated.
Thanks,
rone
I have a report that is based off of a query. I want to get everything to
the Left of a "," in a field called "initial_terms" and display that result
in the report, but I keep getting an error.
I've tried the following in the Control Source for the field:
=instr(1,[initial_terms],",",vbtextcompare) ---------> This generates an error
=instr(1,"Aaron","a",vbtextcompare) ----------->this works fine.
=Left_string([initial_terms]) --------> I wrote a function to use the instr
and return the value, but this also returned an error.
=Left_string("Aaron")---------> If I place a string in there the function
works just fine.
So, my two problems are this. When I try to use the name of the field for
the "instr" function or the "Left_string" function I wrote, I get problems.
Any ideas on how to solve this problem will be appreciated.
Thanks,
rone