Şu şekilde hallettim:
Module Fonkiyon
Dim vb_baglanti As OleDb.OleDbConnection
Dim bilgi As OleDb.OleDbDataReader
Dim vb_komut As OleDb.OleDbCommand
Sub baglan()
vb_baglanti = New OleDb.OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0; DATA Source=|DataDirectory|\personel.mdb")
vb_baglanti.Open()
End Sub
Function MuesseseAdi(ByVal Numara As Byte) As String
Dim MuesseseIsmi As String
Call baglan()
vb_komut = New OleDb.OleDbCommand("Select MueAdi from Muessese where ID=" & Numara, vb_baglanti)
bilgi = vb_komut.ExecuteReader()
Do While bilgi.Read()
MuesseseIsmi = bilgi.Item("MueAdi")
Loop
bilgi = Nothing
vb_baglanti.Close()
Return MuesseseIsmi
End Function
End Module