Advertisement

03.14.2007 at 03:40AM PDT, ID: 22448296
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

lotusscript ODBC Query

Asked by varvoura in Lotus Domino Email Server, Lotus Notes

Tags: ,

Hi all,

I have created an ODBC agent for my notes/domino Web Application. This agent sits behind a button which admin utilises to validate that the information entered by the user do in fact exist in backend datasource and that they are correct.

The query is all correct, but what I am having a bit of trouble with is the following:

Qry.SQL = "Select * " + _
      "FROM Customer, Customer_Invoice_Line_File WHERE Customer.Number = Customer_Details.CDNumber " +_
      "And Customer.Cus_Type ='7'" +_
      "And Customer_Details.CustDetail_Type ='7'" + _
      "And Customer.Invoiceno = '"+nvVariable+"'"  
      
      Dim res As New ODBCResultSet
      End If

      RetCode% = ResHO.FirstRow
      
      If RetCode% = False Then
            Print " no records to match your query"
      exit sub
end if

do while retcode%=true

If RetCode% = True
 
        If doc.field1 = Cstr( Res.GetValue("Date”))  
    'move to next field
 else
  errormsg = "value entered in" doc.field1 is incorrect

    If doc.field2 = Cstr( Res.GetValue("product”))  
'move to field 3
else
errormsg1 = errormsg + chr(13) + "value entered in" doc.field2 is incorrect
then  third, until n fields until we finish all the fields that I need to validate with the live OCB connection against the values entered by the user.
This is the only feasible way that can be done because data amount is too large to keep in notes ......
At the end I will have a routine which after closing the connection will send the user an email informing of results if any errors.

MY PROBLEM

I am having trouble construct the valiation loop correctly. not too sure if I am on the right path up there

Can anyone give me a hand with this. It will be much appreciated.

Thank you all in advance.
Varvoura

 






Start Free Trial
[+][-]03.14.2007 at 05:07AM PDT, ID: 18717593

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2007 at 05:24AM PDT, ID: 18717698

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.14.2007 at 07:47AM PDT, ID: 18718809

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2007 at 10:20AM PDT, ID: 18720318

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Lotus Domino Email Server, Lotus Notes
Tags: lotusscript, odbc
Sign Up Now!
Solution Provided By: marilyng
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.14.2007 at 04:32PM PDT, ID: 18723107

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.15.2007 at 01:21AM PDT, ID: 18725477

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.15.2007 at 09:29AM PDT, ID: 18728288

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44