highlight current record is highlighting ALL records

Ho -
I have a form for which I need to do conditional formatting (the selected record is to be shown different from the unselected records). So I have an invisible field an on the "on current" event I have:

Private Sub Form_Current()

    Me.F113_NumeroProjetoCorrente = Me.F113_NumeroProjeto
    
    If CurrentProject.AllForms("F91_LoggedUser").IsLoaded Then
        Forms!F91_LoggedUser!F91_NumeroProjetoCorrente = Me.F113_NumeroProjeto
    End If

End Sub

Open in new window


Then, on the fields conditional formatting, I have:

the fields:

ss1
 
the conditional formatting function:

ss2
and the output:

ss3
All records are "current" (!)

And the top hidden field (shown for teste, is OK)

can anyone help?
João serras-pereiraAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
Not sure exactly what your doing, but the problem is that a field must be bound (have a controlsource set) in order to be different for each row.

 If not, then Access assumes all rows are the same.

Jim.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
João serras-pereiraAuthor Commented:
Hi Jim -
Thanks

Actually the field is bound, but your comment pointed me  to the right track!
The hidden field, by my mistake, was also bound (too many Ctrl C/V). And is must NOT be bound! it is perfectly working now!
Thanks again
Joao
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.