473,804 Members | 3,549 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lotus Notes SQL ODBC interface from Access

I am trying to access data in a Lotus Notes database, from Access.
The Notes database is release R5.
I installed NotesSQL 8.x and have it working. However it chokes on
one of the tables and references problems with the dates.
If I create a query, without these dozen or so dates, I can access all
the data.

However I am guessing that most of the dates are correct and only some
are bad.

Anyone encounter this before and hopefully have a solution?

bob
Oct 16 '08 #1
4 9725
Greetings,

I would go with the Lotus Script instead of the ODBC driver. Here is
some sample code - this will use Lotus Script which you can add DAO code
to read the data from the Lotus Script - make a reference to the Notes
Library in Tools/References - also - you can use early binding with R5
dim sess as New Notes.Session - way better than late binding):

Dim session As Object 'notes session
Dim db As Object 'notes database
Dim view As Object 'notes view
Dim searchview As Object 'notes search results
Dim doc As Object 'notes document
Dim DocCount As Long
Dim ViewStr As String
Dim testvar As string
ViewStr = "3. R&D\By Period"

Set session = CreateObject("N otes.NotesSessi on")
Set db = session.GETDATA BASE("SERVERNAM E",
"C:\someDir\you rNotesNsf.nsf")
Set view = db.GetView("Vie w1")
Set doc = view.getfirstdo cument
testvar = doc.getitemvalu e("fld1")

then you can loop using the GetNextDocument object

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Oct 16 '08 #2
Rich P wrote:
Greetings,

I would go with the Lotus Script instead of the ODBC driver. Here is
some sample code - this will use Lotus Script which you can add DAO code
to read the data from the Lotus Script - make a reference to the Notes
Library in Tools/References - also - you can use early binding with R5
dim sess as New Notes.Session - way better than late binding):

Dim session As Object 'notes session
Dim db As Object 'notes database
Dim view As Object 'notes view
Dim searchview As Object 'notes search results
Dim doc As Object 'notes document
Dim DocCount As Long
Dim ViewStr As String
Dim testvar As string
ViewStr = "3. R&D\By Period"

Set session = CreateObject("N otes.NotesSessi on")
Set db = session.GETDATA BASE("SERVERNAM E",
"C:\someDir\you rNotesNsf.nsf")
Set view = db.GetView("Vie w1")
Set doc = view.getfirstdo cument
testvar = doc.getitemvalu e("fld1")

then you can loop using the GetNextDocument object

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Thanks very much. I will give it a shot.

bob
Oct 16 '08 #3
On Oct 16, 6:53*pm, Bob Alston <bobalst...@yah oo.comwrote:
Rich P wrote:
Greetings,
I would go with the Lotus Script instead of the ODBC driver. *Here is
some sample code - this will use Lotus Script which you can add DAO code
to read the data from the Lotus Script - make a reference to the Notes
Library in Tools/References - also - you can use early binding with R5
dim sess as New Notes.Session - way better than late binding):
Dim session As Object * 'notes session
Dim db As Object * * * *'notes database
Dim view As Object * * *'notes view
Dim searchview As Object 'notes search results
Dim doc As Object * * * 'notes document
Dim DocCount As Long
Dim ViewStr As String
Dim testvar As string
ViewStr = "3. R&D\By Period"
Set session = CreateObject("N otes.NotesSessi on")
Set db = session.GETDATA BASE("SERVERNAM E",
"C:\someDir\you rNotesNsf.nsf")
Set view = db.GetView("Vie w1")
Set doc = view.getfirstdo cument
testvar = doc.getitemvalu e("fld1")
then you can loop using the GetNextDocument object
Rich
*** Sent via Developersdexht tp://www.developersd ex.com***

Thanks very much. *I will give it a shot.

bob- Hide quoted text -

- Show quoted text -
One question: I do not know where the nsf database is physically. To
use this approach it looks like I need to know the file address of the
nsf - correct?
I have the Notes client and can access the database. Any easy to
identify the database file name (without having to go to the system
administrator?) ?

thanks
Oct 17 '08 #4
Straight from memory here (haven't worked with Lotus Notes going on 4
years now) You can right click on a database icon in the Notes client
window - go to properties and somewhere there it should show the path to
the .nsf file. Here is a caveat - if you don't have the proper rights
to that .nsf I don't think you will be able to see the path or
read/write data - maybe read. I forget Notes security -they have
readers/read-write/administrator/and a few other levels. once you have
the path you should be able to read programmaticall y.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Oct 17 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2225
by: JA | last post by:
Does anyone know how to access a Lotus Notes, or more correctly Lotus Domino, file or ntf using php? I have heard it is fairly easy, but I can find no references to it. Any ides? Thanks.
13
15173
by: Sateesh | last post by:
Hi, Is it possible to access Lotus notes using Python? Can anyone provide me some pointers? Thanks Sateesh
2
2650
by: Manuela | last post by:
Hi, I would want connetting to Db Domino for custom export Mail Folder of Lotus Notes to Exchange/Outlook. It is possible from .net? c# i.e? through ODBC or? Thks
5
5022
by: NickBlooruk | last post by:
Hello, I have successfully linked a Lotus Notes server to our SQL Server database using an ODBC connection. This works fine when wanting to select records eg openquery(LOTUSNOTES2, 'select * from Person' ) The problem I have is when I try to update the record I get an error eg update openquery(LOTUSNOTES, 'select * from Person where
5
7395
by: Colin Anderson | last post by:
I discovered, with great excitement, this article http://www.davison.uk.net/vb2notes.asp when researching methods for emailing from Access via Notes. Unfortunatly, when I run this I get a Run-time error. When I run it on an XP machine it crashes, but on an NT box it just generates an unknown error, handled by the error handler. I have debugged and stepped through the code and have narrowed the issue to the point at which the...
0
5617
by: PZ Fosbeck | last post by:
I'm not a Lotus Notes developer but thanks to this group's archives have successfully created a function for sending Lotus Notes emails from Access. The follow code works great except I want to remove my name from the 'Sent By' portion of the email. These messages are sent using my client session of Lotus Notes, using a database called 'Tech Team' The resulting email message headers contains (Bold, the From name) 'Tech Team'
2
2218
by: JJBW | last post by:
Hi Does anyone know how I make a connection to a Lotus Notes database to extract address based upon a parameter e.g. customer id ? Best Regards, JJBW
0
1501
by: Heinz K | last post by:
Hi all, is it possible to access a Lotus Notes database even if Lotus Notes is not installed on current computer? I have an IIS and want to create a Webservice which accesses data from a Lotus Notes Server. I found solutions if Lotus Notes is installed locally, but on my IIS Notes is not and will not be installed. Is it nevertheless possible to read data from the database? Thanks!
1
13051
by: Joe | last post by:
HI Has anyone been able to work with lotus notes automation classes??? Can you post sample code of how to use these classes. I have setup in VB but I am not able to port to C# This is what I have so far - I cannot create a session and not sure how to setup From/Subject
0
9582
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5652
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2993
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.