S
shcram
My DB ("Animal") has a field ("Comments") that contains monitar
information in some cases. When present, it is "Vet $164.00, Copa
$25.00". (Other, non monitary information can also be present.)
My agency needs to know the total amount of "Vet" and "Copay" monie
for this year. I need to write a query to extract the $ information i
this field, store it in its own column, and print and total the colum
in a subsequent report.
I think this will work, but not sure. I would have two columns in m
query as follows:
Vet:Mid$([Animal].[Comments],InStr([Animal].[Comments],"Vet $")+1)
Copay:Mid$([Animal].[Comments],InStr([Animal].[Comments],"Copay $")+1)
If I understand the manual, this will "parse" the data that follow
"Vet $" and "Copay $" and put it in its own field. Am I on the righ
track?
Thanks,
Su
information in some cases. When present, it is "Vet $164.00, Copa
$25.00". (Other, non monitary information can also be present.)
My agency needs to know the total amount of "Vet" and "Copay" monie
for this year. I need to write a query to extract the $ information i
this field, store it in its own column, and print and total the colum
in a subsequent report.
I think this will work, but not sure. I would have two columns in m
query as follows:
Vet:Mid$([Animal].[Comments],InStr([Animal].[Comments],"Vet $")+1)
Copay:Mid$([Animal].[Comments],InStr([Animal].[Comments],"Copay $")+1)
If I understand the manual, this will "parse" the data that follow
"Vet $" and "Copay $" and put it in its own field. Am I on the righ
track?
Thanks,
Su