iRecordCount = DCount("[ContactId]", "qry4120_sel_InstitutionQueryContactTypes")
If iRecordCount = 0 Then
Call msfPutContactTypeId("*")
Call msfPutMultiContacts("*")
Else
Set db = DBEngine(0)(0)
Set rsMultiContactTypes = db.OpenRecordset _ ("qry4120_sel_InstitutionQueryContactTypes", dbOpenDynaset)
If Not rsMultiContactTypes.BOF And Not rsMultiContactTypes.EOF Then
rsMultiContactTypes.MoveFirst
End If
Do Until (rsMultiContactTypes.EOF)
BeginTrans
If iFirstTimeFlag = 0 Then
sMultiContact = rsMultiContactTypes!ContactDesc
iFirstTimeFlag = 1
Else
sMultiContact = sMultiContact & " Or " & rsMultiContactTypes!ContactDesc
iFirstTimeFlag = iFirstTimeFlag + 1
End If
rsMultiContactTypes.MoveNext
Loop
Call msfPutMultiContacts(sMultiContact)
End If
|