C
|
cgphp 9/1/2011 |
Check here for the right UPDATE syntax: http://www.w3schools.com/Sql/sql_update.asp |
J
|
jasonfrew author 9/2/2011 |
Hi Thanks for the response. |
C
|
cgphp 9/2/2011 |
After new record was added, you can access the values of the new record using the $values array or $keys array in the "After record added" event. To access specific field value use $values["FieldName"] or $keys["KeyFieldName"]. |
J
|
jasonfrew author 9/2/2011 |
Thanks for the response. however i dont think this will work either as its the database is creating the URN not the application |
C
|
cgphp 9/2/2011 |
What's the primary key field of the table ? |
J
|
jasonfrew author 9/2/2011 |
The primary key of the field im looking to extract the informtation from is Job_no |
C
|
cgphp 9/2/2011 |
What is the field name you want to extract from the table ? |
J
|
jasonfrew author 9/2/2011 |
Its the primary key Update dbo.enquirers,
|
C
|
cgphp 9/2/2011 |
You don't need a nested query. PHPr does the job for you. In the "After record added" event of the dbo.jobs table:
|
J
|
jasonfrew author 9/2/2011 |
Thanks for that.
|
C
|
cgphp 9/2/2011 |
In the "After record added" event enter this code: echo $keys['job_no'];
|
J
|
jasonfrew author 9/2/2011 |
Hi This is what i have in the After record added on the add record page global $conn;
|
C
|
cgphp 9/2/2011 |
Please, post a demo link (you can also send me a PM) and enter the following code in the "After Record Added" event:
|
J
|
jasonfrew author 9/2/2011 |
Details sent Via PM |
J
|
jasonfrew author 9/15/2011 |
So i have now additional code in the after record added event global $conn;
|