close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert into two tables with insert record server behavior

Thread began 12/16/2013 8:20 am by Jedi | Last modified 12/16/2013 10:32 am by Jason Byrnes | 1304 views | 3 replies |

Jedi

Insert into two tables with insert record server behavior

I have a table with serveral fields that is currently inserts into a database table Workbook. I want to take the company name field in the form and also have that field be added to a table called Partner. How do i do this?

Sign in to reply to this post

Jason ByrnesWebAssist

Use 2 insert record behaviors.

make sure the first one does not redirect to another page, only have the redirect on the last one.

Sign in to reply to this post

Jedi

Thanks Jason. I will try that. Also, how do i check to see if that name already appears and if it does then not do the insert?
Example: if the new workbook already has a Partner Company 1 then not add Company 1 again.

Sign in to reply to this post

Jason ByrnesWebAssist

that would take some hand coding.

you would need to create a recordset to lookup the entered company name, then add an if statement around the second insert behavior to only trigger if the recordset is empty.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...