Andrew
|
| Posted: 09/20/2004, 6:19 AM |
|
CCS 2.3.185 with ASP/vbscript/access
In the beforeshowrow event of my grid I am saying
if mygrid.mylabel.value=session("UserID") then
mygrid.mylabel.visible=false
else
mygrid.anotherlabel.visible=false
end if
even if UserID is exactly the same as mylabel the first condition is never triggered. Mylabel in the database and the grid are both defined/formatted as type integer and I have tried comparing it to CInt(Session("UserID")) still nothing....anyone know anything?
THANKS!!
|
|
|
 |
Tuong Do
|
| Posted: 09/21/2004, 4:43 PM |
|
Use this
if cLng(mygrid.mylabel.value)=cLng(session("UserID")) then
mygrid.mylabel.visible=false
else
mygrid.anotherlabel.visible=false
end if
"Andrew" <Andrew@forum.codecharge> wrote in message
news:6414ed8f2400ea@news.codecharge.com...
> CCS 2.3.185 with ASP/vbscript/access
>
> In the beforeshowrow event of my grid I am saying
>
> if mygrid.mylabel.value=session("UserID") then
> mygrid.mylabel.visible=false
> else
> mygrid.anotherlabel.visible=false
> end if
>
> even if UserID is exactly the same as mylabel the first condition is never
> triggered. Mylabel in the database and the grid are both
> defined/formatted as
> type integer and I have tried comparing it to CInt(Session("UserID"))
> still
> nothing....anyone know anything?
>
> THANKS!!
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|