asked on
RepKey = "bpq_form" Or "second_bpq_form"
Set Repview = db.GetView( "(bpq_all)")
Set RepDoc = Repview.GetDocumentByKey( RepKey ) ' form name must be first colum and sorted
...................
x = 3
While Not ( RepDoc Is Nothing ) ' as long as it has a handle on a document do the following
If RepDoc.Form(0) = "bpq_form" Or "second_bpq_form" Then