J
|
jskewes 10/25/2007 |
Hi Lisa - I think you are looking for the Lookup Wizard function. Hi All, Table: _drivers Field: company Table: journey Field: companyname While i'm adding a new record via the journey table, i want to be able to extract the contents of the company field (Table _drivers) and populate this into the field companyname (Table journey). Please Help Lisa |
H
|
horsey_kim 10/25/2007 |
Oh I think I can help you on this one <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=22592&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> |
H
|
horsey_kim 10/25/2007 |
Oh John beat me! I am just too long winded. |
L
|
Lisa2006 author 10/25/2007 |
Hi All, |
H
|
horsey_kim 10/25/2007 |
Might need a little more info. How is the field to know which company to fill in Is there some other variable in your Journy table that will allow the system to know what company to populate? |
L
|
Lisa2006 author 10/26/2007 |
Hi All, |
J
|
Jane 10/26/2007 |
Hi, global $conn; $str = "select company from _drivers where username='".$_SESSION["UserID"]."'"; $rs = db_query($str,$conn); if($data = db_fetch_array($rs)) $values["companyname"] = $data["company"]; |
L
|
Lisa2006 author 10/26/2007 |
Sorry, still not working. |
J
|
Jane 10/26/2007 |
answered in your personal email. |