Hello all,I have developed a search Form using LotusScript. On pressing the search button on the page, a view is created with the search results in it. Now the problem is that after the view has been created, i want to open the view. Following is the code for reference.
querystring = “& venture = ‘0’”
newviewname = “D-” + Cstr(Rnd) + Time$()
'Formula that will apply in the New created View
myviewformula = "SELECT Form = ‘Project_information’ " & querystring
'Create new view with name from user input
Set UsersView = s.CurrentDatabase.CreateView(newviewname,myviewformula,view)
Call uidb.OpenView(newviewname,True)
Now the view is created succesfully with all the results displayed for the search. But when i try to open the view using NotesUIDatabase object, i get the following error message … “Object Variable Not Set” … can someone please help me out here … its an urgent requirment that i need to do.
Regards,
Jawad Rana