Function PutReference(Imedll As String)
Dim Db As Database
Dim Ref As Reference
Dim PutanjaB As String
Dim PutanjaDLL As String
Set Db = CurrentDb
For Each Ref In References
If Imedll = Ref.Name Then
PutanjaB = Db.Name
PutanjaDLL = Ref.FullPath
If PutanjaB <> PutanjaDLL Then
MsgBox "Putanja nije ista ili nesto drugo"
'docmd.Quit
End If
End If
Next Ref
End Function
Function M_Path(PutanjaO) As String
Dim Db As Database, Putanja As String
On Error Resume Next
Set Db = DBEngine(0)(0)
Putanja = PutanjaO
Do Until Right$(Putanja, 1) = "\"
Putanja = Left$(Putanja, Len(Putanja) - 1)
Loop
Db_Path = Putanja
End Function
zxz