Paul
|
| Posted: 04/21/2003, 1:00 PM |
|
Hi,
Here’s the problem..
I have a grid which lists claims, each with a unique ID Number. Clicking on the ID number opens the record so it can be changed (I used the grid and record builder)
What I want to do is hide the ID number of the records in the grid when another field in the grid has a value not equal to "Pending". This is so the user can view all the claims in the grid but only make changes to unauthorised ones.
I've entered this code into the before show event of the grid but it's not doing anything
function tblMileage_Clai3_BeforeShow() {
global $tblMileage_Clai3;
if ($tblMileage_Clai3->fldStatus->GetValue() <> "Pending" ) {
$tblMileage_Clai2->fldprimarykey->Visible = False;
}
}
I have tried changing it to = "Pending" just to see if that worked but it didn't do aything either.
Thanks in advance for any help.
PS I am using CCS, PHP and Access
|
|
|
 |
DaveRexel
|
| Posted: 04/21/2003, 2:29 PM |
|
Hello Paul
Try != "Pending" or == "Pending"
the single = is for assigning values in PHP and I'm not sure <> will work in CCS PHP
Greetings
Dave
CCS Knowledge Base http://www.rexdesign.com/ccs/default.php
|
|
|
 |
|