vba - VB Script code to read column value from lotus notes database -
vba - VB Script code to read column value from lotus notes database -
set domsession = createobject("notes.notessession") dim domdatabase set domdatabase = domsession.getdatabase("server name", "xyz.nsf") set domview = domdatabase.getview("all projects")
up here it's ok. seek lot unable read document values.
i looking vbscript code read document data.
add this:
dim i% dim s$ dim doc object i% = 1 domview.entrycount set doc = domview.getnthdocument(i%) s$ = doc.getitemvalue("itemname")(0) ' whatever want string value stored in s$ next
this code assumes items text type. utilize dim s
item type (number, date).
to column values view can utilize doc.columnvalues(2)
. returns value of 3rd column (0 first).
vba lotus-notes lotus names
Comments
Post a Comment