|
Mike,
Good use of iNav. I was going to suggest that first.
Have you done other DB connections?
Are you at least connecting to your i? Do not assume that, since you are
running it on your i, that you do. Some sample code:
If Not conn.connectto(servername, Uname, Pwd) Then
Print db.filepath+" - Connection failed."
txt="Could not connect to system '" & servername &
"' using UserId '" & Uname & "'."
Call PI_Report.AppendText(txt)
Call PI_Report.AddNewLine(1)
txt=txt+" The extended message is '"
+conn.GetExtendedErrorMessage()+"'."
Call agentlog.Logaction(txt)
Print txt
doc.piupdate=4
Call SendMailMsg(txt)
Exit Forall
End If
Print db.filepath+" - Connection completed."
If logmsgs Then Print "Successfully connected to "+
servername
Set query.connection=conn
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.