Hi,
I am trying to read data from a domino databases (located in our LAN
not on my local machine!) from my access project. I pass a code to the
function checkCodeInDomino to be verified on Domino. On my local
machine everything went fine, but suddenly there came up following
problem:
I was coding and testing with the code below, and I have never been
asked for my lotus password, now when starting my function, there comes
a box up (dont know why this changed?) where I have to enter my lotus
password, when entering my notes password, my function works fine.
But I have to distribute my application to other clients and users, and
it doesnt make sense to use my password.
So I received a public account from our domino admin, for all of us.
When using "DomSession.Initialize (publicLotusPassword)" there are no
errors.
But the problem is, that that's not a real solution for my
appliacation, because each user has to enter his own password, I dont
want that,
but entering a hard coded password doesnt work, because the password
that is asked is referring to
"c:\lotus\notes\data\wk\$userName.ID"
Is there any way to use "DomSession.Initialize" in some kind of a
"generic" way, so that any other user can use the function
"checkCodeInDomino"?
Please remember that the domino database is always on a remote machine
and
"'DomSession.InitializeUsingNotesUserName($Adm in, $Pass)"
does not work!
Here is my code...
Function checkCodeInDomino(checkCode As Long)
On Error GoTo Err_Quit_Click
Dim DomDir As NotesDatabase
Dim DomContacts As NotesView
Dim DomDoc As NotesDocument
Dim StrName As String
Dim DomSession As NotesSession
Dim serverName As String
Dim databaseFile As String
Set DomSession = CreateObject("Lotus.NotesSession")
serverName = "myServerName"
databaseFile = "myFile"
DomSession.Initialize
Set DomDir = DomSession.GetDatabase(serverName, databaseFile)
Set DomContacts = DomDir.GetView("myView")
Set DomDoc = DomContacts.GetFirstDocument
While Not (DomDoc Is Nothing)
If DomDoc.GetItemValue("Dealer_Code")(0) = checkCode Then
checkCodeInDomino = True
Exit Function
End If
Set DomDoc = DomContacts.GetNextDocument(DomDoc)
Wend
checkCodeInDomino = False
Exit_Quit_Click:
Exit Function
Err_Quit_Click:
MsgBox Err.Description
Resume Exit_Quit_Click
End Function
Thank you for your attention!
Peter Neumaier 3 4270
I think you'll have more luck asking in a newsgroup related to Notes or
Domino, as opposed to a database group.
Have you tried looking for documentation at http://www.lotus.com?
--
Doug Steele, Microsoft Access MVP http://I.Am/DougSteele
(no e-mails, please!)
"Peter Neumaier" <Pe************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com... Hi, I am trying to read data from a domino databases (located in our LAN not on my local machine!) from my access project. I pass a code to the function checkCodeInDomino to be verified on Domino. On my local machine everything went fine, but suddenly there came up following problem:
I was coding and testing with the code below, and I have never been asked for my lotus password, now when starting my function, there comes a box up (dont know why this changed?) where I have to enter my lotus password, when entering my notes password, my function works fine. But I have to distribute my application to other clients and users, and it doesnt make sense to use my password. So I received a public account from our domino admin, for all of us. When using "DomSession.Initialize (publicLotusPassword)" there are no errors. But the problem is, that that's not a real solution for my appliacation, because each user has to enter his own password, I dont want that, but entering a hard coded password doesnt work, because the password that is asked is referring to "c:\lotus\notes\data\wk\$userName.ID"
Is there any way to use "DomSession.Initialize" in some kind of a "generic" way, so that any other user can use the function "checkCodeInDomino"? Please remember that the domino database is always on a remote machine and "'DomSession.InitializeUsingNotesUserName($Adm in, $Pass)" does not work!
Here is my code...
Function checkCodeInDomino(checkCode As Long) On Error GoTo Err_Quit_Click
Dim DomDir As NotesDatabase Dim DomContacts As NotesView Dim DomDoc As NotesDocument Dim StrName As String
Dim DomSession As NotesSession Dim serverName As String Dim databaseFile As String
Set DomSession = CreateObject("Lotus.NotesSession") serverName = "myServerName" databaseFile = "myFile"
DomSession.Initialize
Set DomDir = DomSession.GetDatabase(serverName, databaseFile) Set DomContacts = DomDir.GetView("myView") Set DomDoc = DomContacts.GetFirstDocument
While Not (DomDoc Is Nothing)
If DomDoc.GetItemValue("Dealer_Code")(0) = checkCode Then checkCodeInDomino = True Exit Function End If Set DomDoc = DomContacts.GetNextDocument(DomDoc) Wend
checkCodeInDomino = False
Exit_Quit_Click: Exit Function
Err_Quit_Click: MsgBox Err.Description Resume Exit_Quit_Click
End Function
Thank you for your attention!
Peter Neumaier
Hi Douglas,
thank you for your answer, but I think that my problem is more VBA and
ACCES than it is to domino databases.
So the only problem I have to solve is, how to use a default password
when accessing the domino database ...
For sure I found documentation on lotus.com, but there isnt anything
regarding my problem
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message news:<0c********************@rogers.com>... I think you'll have more luck asking in a newsgroup related to Notes or Domino, as opposed to a database group.
Have you tried looking for documentation at http://www.lotus.com?
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Peter Neumaier" <Pe************@gmail.com> wrote in message news:11**********************@g14g2000cwa.googlegr oups.com... Hi, I am trying to read data from a domino databases (located in our LAN not on my local machine!) from my access project. I pass a code to the function checkCodeInDomino to be verified on Domino. On my local machine everything went fine, but suddenly there came up following problem:
I was coding and testing with the code below, and I have never been asked for my lotus password, now when starting my function, there comes a box up (dont know why this changed?) where I have to enter my lotus password, when entering my notes password, my function works fine. But I have to distribute my application to other clients and users, and it doesnt make sense to use my password. So I received a public account from our domino admin, for all of us. When using "DomSession.Initialize (publicLotusPassword)" there are no errors. But the problem is, that that's not a real solution for my appliacation, because each user has to enter his own password, I dont want that, but entering a hard coded password doesnt work, because the password that is asked is referring to "c:\lotus\notes\data\wk\$userName.ID"
Is there any way to use "DomSession.Initialize" in some kind of a "generic" way, so that any other user can use the function "checkCodeInDomino"? Please remember that the domino database is always on a remote machine and "'DomSession.InitializeUsingNotesUserName($Adm in, $Pass)" does not work!
Here is my code...
Function checkCodeInDomino(checkCode As Long) On Error GoTo Err_Quit_Click
Dim DomDir As NotesDatabase Dim DomContacts As NotesView Dim DomDoc As NotesDocument Dim StrName As String
Dim DomSession As NotesSession Dim serverName As String Dim databaseFile As String
Set DomSession = CreateObject("Lotus.NotesSession") serverName = "myServerName" databaseFile = "myFile"
DomSession.Initialize
Set DomDir = DomSession.GetDatabase(serverName, databaseFile) Set DomContacts = DomDir.GetView("myView") Set DomDoc = DomContacts.GetFirstDocument
While Not (DomDoc Is Nothing)
If DomDoc.GetItemValue("Dealer_Code")(0) = checkCode Then checkCodeInDomino = True Exit Function End If Set DomDoc = DomContacts.GetNextDocument(DomDoc) Wend
checkCodeInDomino = False
Exit_Quit_Click: Exit Function
Err_Quit_Click: MsgBox Err.Description Resume Exit_Quit_Click
End Function
Thank you for your attention!
Peter Neumaier
While I recognize that you're experiencing the problem using automation from
VBA, you're still issuing commands to directly to Domino. I would think that
people more familiar with the Domino programming model would be better able
to help than people familiar with VBA.
YMMV, though.
--
Doug Steele, Microsoft Access MVP http://I.Am/DougSteele
(no e-mails, please!)
"Peter Neumaier" <Pe************@gmail.com> wrote in message
news:98**************************@posting.google.c om... Hi Douglas,
thank you for your answer, but I think that my problem is more VBA and ACCES than it is to domino databases.
So the only problem I have to solve is, how to use a default password when accessing the domino database ...
For sure I found documentation on lotus.com, but there isnt anything regarding my problem
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message news:<0c********************@rogers.com>... I think you'll have more luck asking in a newsgroup related to Notes or Domino, as opposed to a database group.
Have you tried looking for documentation at http://www.lotus.com?
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Peter Neumaier" <Pe************@gmail.com> wrote in message news:11**********************@g14g2000cwa.googlegr oups.com... > Hi, > I am trying to read data from a domino databases (located in our LAN > not on my local machine!) from my access project. I pass a code to the > function checkCodeInDomino to be verified on Domino. On my local > machine everything went fine, but suddenly there came up following > problem: > > I was coding and testing with the code below, and I have never been > asked for my lotus password, now when starting my function, there comes > a box up (dont know why this changed?) where I have to enter my lotus > password, when entering my notes password, my function works fine. > But I have to distribute my application to other clients and users, and > it doesnt make sense to use my password. > So I received a public account from our domino admin, for all of us. > When using "DomSession.Initialize (publicLotusPassword)" there are no > errors. > But the problem is, that that's not a real solution for my > appliacation, because each user has to enter his own password, I dont > want that, > but entering a hard coded password doesnt work, because the password > that is asked is referring to > "c:\lotus\notes\data\wk\$userName.ID" > > Is there any way to use "DomSession.Initialize" in some kind of a > "generic" way, so that any other user can use the function > "checkCodeInDomino"? > Please remember that the domino database is always on a remote machine > and > "'DomSession.InitializeUsingNotesUserName($Adm in, $Pass)" > does not work! > > Here is my code... > > Function checkCodeInDomino(checkCode As Long) > On Error GoTo Err_Quit_Click > > Dim DomDir As NotesDatabase > Dim DomContacts As NotesView > Dim DomDoc As NotesDocument > Dim StrName As String > > Dim DomSession As NotesSession > Dim serverName As String > Dim databaseFile As String > > Set DomSession = CreateObject("Lotus.NotesSession") > serverName = "myServerName" > databaseFile = "myFile" > > DomSession.Initialize > > Set DomDir = DomSession.GetDatabase(serverName, databaseFile) > Set DomContacts = DomDir.GetView("myView") > Set DomDoc = DomContacts.GetFirstDocument > > While Not (DomDoc Is Nothing) > > If DomDoc.GetItemValue("Dealer_Code")(0) = checkCode Then > checkCodeInDomino = True > Exit Function > End If > Set DomDoc = DomContacts.GetNextDocument(DomDoc) > Wend > > checkCodeInDomino = False > > Exit_Quit_Click: > Exit Function > > Err_Quit_Click: > MsgBox Err.Description > Resume Exit_Quit_Click > > End Function > > Thank you for your attention! > > Peter Neumaier > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mike Discenza |
last post by:
I'm working on a new system that my superiors have determined should use
LDAP for it's authentication and user management. Not real bad, but it's
proving to be a bit of a hassel.
I'm using a...
|
by: Christian Patterer |
last post by:
Hi,
Even after searching the web for hours, I can't get my PHP configuration
work.
I have Apache and PHP installed. Now I want to use the mail() function
in PHP. On the Linux server I have...
|
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...
|
by: Peter Neumaier |
last post by:
Hi,
I am trying to read data from a domino databases (located in our LAN
not on my local machine!) from my access project. I pass a code to the
function checkCodeInDomino to be verified on Domino....
|
by: Kevin Yu |
last post by:
hi all
is there any managed component out there to send out email through the
domino email server??
Kevin
|
by: gabriel.salama |
last post by:
I am desperately trying to create a login page in ASP.NET in which a
user can be authenticated against a Domino Directory but for the life
of me, I cannot even find anything remotely close to this...
|
by: shenanwei |
last post by:
We just upgraded DB2 UDB workgroup Edition on Windows 2003 from V8.1.5
to V8.2.3, server and client with no problem.
Domino server is V6.0.2CF2 on Windows 2003 on another machine, DB2
client is...
|
by: VooDoo |
last post by:
Hi,
I am using domino email group to send notifications.
I would like to keep a record of the email sent, but also the list of the
person that are in the group.
Currently i just send an smtp...
|
by: gilles.carali |
last post by:
Bonjour,
J'ai deux serveurs Domino Notes (A et B) en cluster qui se connectent
à l' AS400 via DB2 ou ODBC.
Configuration :
Win2000, Domino Notes V5.013a
Client Access Express en V4.5 (SP...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |