Hi,I’m trying to use a button to open one database from another. I’ve tried both the @Command shown and LotusScript shown. I keep getting a “file does not exist” error but the file does exist and I can open it manually through file -db-open and through the icon. Any ideas of what could be causing this? This is the proper folder and file name. Server is running R5 and I’m running R6 on my client machine.
@Command([FileOpenDatabase]; “”:“archive\mssArchive20012002.NSF”; “”; “”; “”; “” )
Script:
Dim ws As NotesUIWorkspace
Set ws = New NotesUIWorkspace
Call ws.OpenDatabase( “”, “archive\mssArchive20012002.NSF”, “”, “”, “”, “” )
Subject: File Does Not Exist w/@Command([FileOpenDatabase] & LotusScript
Are you trying to open a local database or one on the server?
Subject: File Does Not Exist w/@Command([FileOpenDatabase] & LotusScript
just trim the at command down:
@Command([FileOpenDatabase];“”:“archive\mssArchive20012002.NSF”)
and see what happens…
Subject: File Does Not Exist w/@Command([FileOpenDatabase] & LotusScript
The first argument in your database open commands is blank, hence it is looking for the databases locally and not on the server. If the databases are located on the server then you need to specify the server name as the first argument.
Example:
@Command([FileOpenDatabase]; @Subset(@DbName;1):“archive\mssArchive20012002.NSF”
Regards,
Alex
Subject: File Does Not Exist w/@Command([FileOpenDatabase] & LotusScript
Ah Hah! Sometimes the simplest things give the most trouble! I just added the server name and it worked. I thought that if the server name was blank it was use the current server. I guess my thoughts were wrong. Thank you very much for your help!