Advertisement

09.07.2007 at 04:02AM PDT, ID: 22813019
[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!

5.6

Lotus Notes NotesSession.Evaluate Problems in VB in Office 2003

Asked by chuckalicious in VB Script, Lotus Notes, VB Objects

Tags: ,

I am currently writing some code in VB (actually in a macro in Word 2003) which will create a notes document and fill out a couple of fields.

The code I'm using is below:

    Dim TrackingDoc As Object
    Dim Session As Object
    Dim MailServer As String 'this is the users mail server
    Dim ws As Object 'this is the workspace
    Dim MailDB As Object 'this is the users mail database
    Dim MailDBName As String 'this is the file path of the users mail file

    Set Session = CreateObject("Notes.NotesSession")
    Set ws = CreateObject("Notes.NotesUIWorkspace")
    MailServer = Session.GetEnvironmentString("MailServer", True)
   
    If Trim(MailServer) = "" Then Exit Sub
   
    MailDBName = Session.GetEnvironmentString("MailFile", True)
   
    If Trim(MailDBName) = "" Then Exit Sub
   
    Set MailDB = Session.GetDatabase(MailServer, MailDBName)
    Set TrackingDoc = MailDB.CREATEDOCUMENT
   
    'work out a unique reference for this document
    ClarRef = Session.Evaluate("@Unique", TrackingDoc)

This works fine until the very last line, using the Evaluate method. At this point I get the error from office:

Run-time error '438':
Object doesn't support this property of method

However, if I add a reference to Domino Objects, then dim the session as new NotesSession, evaluate works, as long as I do session.Initialize first.

However, I can't use this because it prompts the user for a password, which we don't want, and we don't to pass a generic username and password as we need to know who created/edited the document, so I'm stuck with the method above.

So, does anyone know how I can get the session.evaluate to work? I really need the result of the @Unique

ThanksStart Free Trial
[+][-]09.07.2007 at 04:07AM PDT, ID: 19846627

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2007 at 04:14AM PDT, ID: 19846649

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.07.2007 at 10:00AM PDT, ID: 19849332

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2007 at 12:48PM PDT, ID: 19850516

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.08.2007 at 05:34AM PDT, ID: 19853181

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2007 at 12:54PM PDT, ID: 19854372

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 12:18AM PDT, ID: 19859335

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 12:22AM PDT, ID: 19859350

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 12:32AM PDT, ID: 19859377

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 05:24AM PDT, ID: 19860372

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 05:25AM PDT, ID: 19860384

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 05:36AM PDT, ID: 19860441

View this solution now by starting your 7-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: VB Script, Lotus Notes, VB Objects
Tags: lotus, notes
Sign Up Now!
Solution Provided By: sjef_bosman
Participating Experts: 2
Solution Grade: B
 
 
[+][-]09.10.2007 at 05:38AM PDT, ID: 19860450

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 05:39AM PDT, ID: 19860462

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 05:39AM PDT, ID: 19860463

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 05:54AM PDT, ID: 19860540

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 06:09AM PDT, ID: 19860611

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

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

 
[+][-]09.10.2007 at 07:20AM PDT, ID: 19861132

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.10.2007 at 12:53PM PDT, ID: 19863747

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628