Solved

Scraping from a Lotus notes form to an Access table

Posted on 2001-07-30
6
352 Views
Last Modified: 2013-12-18
OK...I'm trying to extract information from a Lotus Notus form and write it into an access database
for storage for reporting.  For example.... I have a lotus notes form called CreditScore  
fields txtloannumber
      txtcustomer
      txtscore
      txtapprover

I would like to have this information written into an access table upon hitting a button on a form within
Access

 Form Name:  FRMCreditscore
 fields  txtloannumber
         txtcustomer
         txtscore
         txtapprover

  button: btnscrape

I'm hoping you could assist me with the coding based on the above information.  Your assistance is greatly
appreciated.  Thanks
         
0
Comment
Question by:heselton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:snocross
ID: 6335652
I would just use an ODBC driver and then you can kick off an access query that uses the driver.  That would be the easiest solution.  There's also solutions that don't require ODBC:

http://www.advisor.com/Articles.nsf/aid/KOCHD24
http://www.acc-technology.com/ntwiz.htm
0
 
LVL 2

Expert Comment

by:melbor1
ID: 6335654
Following is some code that might help you:

Let me know if you have any questions,

Melissa
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Uselsx "*LSXODBC"
Sub Click( Source as Button)
Dim workspace as New NotesUIWorkspace
Dim doc as NotesDocument
 
Dim con As New ODBCConnection
Dim qry As New ODBCQuery
Dim result As New ODBCResultSet
     
On Error Goto errorHandler
     

'get a handle to the current document
Set doc = workspace.CurrentDocument

'get a handle to the Access table
Set qry.Connection = con
Set result.Query = qry
     
'replace in quotes the name of the ODBC data source you have set up
con.ConnectTo("AccessDB")

'get a handle to the table you want to write to....replace table with the correct name
qry.SQL = "SELECT * FROM Table"
result.Execute
     
'add a row to the access table
result.AddRow

'add the values to the table    
Call result.SetValue("txtcustomer", doc.txtcustomer(0))
Call result.SetValue("txtscore", doc.txtscore(0))
Call result.SetValue("txtapprover", doc.txtapprover(0))

'update the table
result.UpdateRow

'close the table
result.Close(DB_CLOSE)

'close the ODBC connection
con.Disconnect
Exit Sub

errorHandler:
Messagebox result.GetExtendedErrorMessage,, result.GetErrorMessage
Exit Sub
End Sub
0
 
LVL 2

Expert Comment

by:melbor1
ID: 6335659
Whoops!

replace the line:
Set document = workspace.CurrentDocument
with
Set document = workspace.CurrentDocument.document

Sorry!

Melissa
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:heselton
ID: 6337381
Thanks melbor1....Looks good...however...I need to code in acccess to pull info from Lotus Notes....Any chance you can help me there.  Thanks for your assistance.
0
 
LVL 2

Accepted Solution

by:
melbor1 earned 200 total points
ID: 6340859
Hi heselton,

Although I cannot give you a specific example, there is a IBM Redbook "COM Together with Domino" that explains how to use Visual Basic to access Lotus Notes data.

http://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg245670.pdf

Hope this helps,

Melissa
0
 

Author Comment

by:heselton
ID: 6350096
Sorry it has taken longer than expected to get back to you.  Thanks for the help.. The reference book should help me accomplish what I'm trying to do.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lotus Notes 6.5.5 6 232
Lotus Notes Database "Invalid NSF Version" 5 2,247
Lotus Notes transfer mail box problem 6 111
See used databases in Domino 8 109
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question