close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DA Search and Recordsets with Joins

Thread began 5/04/2010 5:43 pm by Lee Firth | Last modified 5/05/2010 2:25 pm by Lee Firth | 1789 views | 4 replies |

Lee Firth

DA Search and Recordsets with Joins

I have applied DA search to a page, it doesn't seem to work properly. I have used it on other pages and have not had any problems but for some reason it doesn't work as expected in this instance. The only difference I can see looking at the generated code is that the recordset has a join in it. Here is the SQL:

SELECT DISTINCT tblinspectors.fldInspID, tblinspectors.fldInspNum, tblinspectors.fldFirstName, tblinspectors.fldLastName, tblinspectors.fldTradNam, tblinspectors.fldSuburb, tblinspectors.fldState, tbltransactions.fldProcess
FROM (tblinspectors INNER JOIN tbltransactions ON tbltransactions.fldInspNum=tblinspectors.fldInspNum)
WHERE tbltransactions.fldProcess=0

I have attached the source in a zip to this post.

Attached Files
Search Problem.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Without some more information it is impossible to guess at the problem.

What is the result you are getting vs. the expected result?

you say "it doesn't work as expected in this instance" but do not offer any explanation of the expected result.

in addition to more details, it would also help to have a link where we could see the problem.

Sign in to reply to this post

Lee Firth

I can't give you a link as this is an intranet site, but pictures speak a thousand words and videos even more. This video will explain the problem.

ZTVmYzQ0Nz

Sign in to reply to this post

Jason ByrnesWebAssist

thank you for clarifying that.


I think that the issue is the where clause you have on the recordset:

WHERE tbltransactions.fldProcess=0


and the fact that the seperator you are using for the state search is "OR"

this means when you select "vic" from the list, the where clause becomes:

WHERE tbltransactions.fldProcess=0 OR fldState = 'vic'

this will return all records where either condition is met, the state = 'vic' OR the Process = 0.

change the Separator for the state comparison to AND

Sign in to reply to this post

Lee Firth

Thanks for that Jason.

If I had thought a little more about what the SB was actualy doing to the SQL, I should have worked that one out for myself.

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...