Hi Douglas,
All the fields I am dealing with are text, I manually specified them and
double checked them. Funny thing is that after I tried and played around with
it, I got bored and decided to do try the same code from a fresh new report
so I've created a new report, totally blank, drop a text box and employed the
code, it work perfectly. The very same codes I place on the textbox on my
existing report which I had lots of other information on there, showing
"#Error", I am thinking spend a little time to move or recreate all the info
from my other report to the new report. I first thought it was the trailing
spaces and type and verified, retyped but wasn't the case. I copy and pasted
the same codes which shown "#Error" on one from to the new form, it show me
the correct number. it's weird isn't it? Thanks for all the helps Douglas.
Mark
One thing to verify is that Tname and Status are actually text fields. If
you used the Lookup Wizard field for one or both of the fields, you find
that the field doesn't actually contain what you think it does (This is but
one of the many reasons why many of us abhor lookup fields: see
http://www.mvps.org/access/lookupfields.htm at "The Access Web" for some
others)
I've tried but it shows same "#Error", I'll do some more research on it
and
[quoted text clipped - 16 lines]