Salek
|
Posted: 04/21/2003, 6:03 AM |
|
Hello
I wonder if some one can point me to the right direction.
I am using asp3+templates + msaccess in CCS.
I need to add a record in USERS table after I insert a record in
Distributors Table,
so the Newly inserted Distribuor has a user for him automatically generated.
Heres how I had the it working right in CC, That I cant seem to port in
CCS.
----------------------------------------------------------------------------
---------------------
select case sAction
case "insert"
'-------------------------------
' distributors1 AfterInsert Event begin
InsertUser fldDistributorName,fldEmail,utDistributor // this function in
GLOBAL CODE does the Job
' distributors1 AfterInsert Event end
'-------------------------------
case "delete"
'-------------------------------
' distributors1 AfterDelete Event begin
DeleteUser sWhere // this clears
the users if the Distributor is deleted
' distributors1 AfterDelete Event end
'-------------------------------
end select
Hope you get the situation........
Now my quesion is
1. How do i include My Code in CSS?
CC had a simple way {global code} but i cant find it in CSS.
2. How do I get the value of any control of form in a variable?
in CC I saw the code and figuered out that variables nmed fldFieldName
had the value of the form elements , so I could write
InsertUser fldDistributorName,fldEmail
Thanks in Advance
Regards
Salek
|
|
|
|