S
shcram
I am a volunteer for an animal shelter. I'm writing year-end reports t
help with grant applications for next year.
Here's my problem. I am using the following code to extract co-paymen
data from a general comments field in my agency's animal data base an
put it in a separate CoPay column in my query:
CoPay:Val(Mid$([Animal].[Comments],InStr([Animal].[Comments],"Co Pa
$")+8))
When the comments field has the entry "Co Pay $NN.NN" in it, the logi
works great. However, there are also lots of times when the fiel
contains "CoPay $NN.NN", "Copay $NN.NN", "Co pay $NN.NN", or n
reference to co payment at all. In those instances it puts garbage i
the "CoPay" field.
Can I expand this statement to include variations of spelling in th
comments field - and have it default to $0 if there are no qualifyin
references? Something like:
If "Co Pay $" or "CoPay $" or "Co pay $" or "Copay $"
then field = NN.NN
else field = 0.00
Anyone have any ideas?
Thanks, Su
help with grant applications for next year.
Here's my problem. I am using the following code to extract co-paymen
data from a general comments field in my agency's animal data base an
put it in a separate CoPay column in my query:
CoPay:Val(Mid$([Animal].[Comments],InStr([Animal].[Comments],"Co Pa
$")+8))
When the comments field has the entry "Co Pay $NN.NN" in it, the logi
works great. However, there are also lots of times when the fiel
contains "CoPay $NN.NN", "Copay $NN.NN", "Co pay $NN.NN", or n
reference to co payment at all. In those instances it puts garbage i
the "CoPay" field.
Can I expand this statement to include variations of spelling in th
comments field - and have it default to $0 if there are no qualifyin
references? Something like:
If "Co Pay $" or "CoPay $" or "Co pay $" or "Copay $"
then field = NN.NN
else field = 0.00
Anyone have any ideas?
Thanks, Su