Još jedan problem - ako na reportu kliknem broj narudžbe želim da otvori obrazac sa učitanim selektiranim zapisom. Upisao sam kod za pozivanje funkcije
Public Function OtvoriNarudzbu()
On Error GoTo OtvoriNarudzbu_Err
With CodeContextObject
If (IsNull(.IDNarudzbe)) Then
Beep
End If
If (Not IsNull(.IDNarudzbe)) Then
End If
DoCmd.OpenForm "Narudzbe", acWindowNormal, "", "[NarudzbaID]=" & .NarudzbaID, , acWindowNormal
End With
OtvoriNarudzbu_Exit:
Exit Function
OtvoriNarudzbu_Err:
MsgBox Error$
Resume OtvoriNarudzbu_Exit
End Function
Pozdrav!