Prikazi cijelu temu 16.08.2015 15:30
pmiroslav Van mreze
Clan
Registrovan od:02.02.2009
Lokacija:Osijek


Predmet:Re: not in list
Probaj ovo na AfterUpdare u frm_User:

PreuzmiIzvorni kôd (vbnet):
  1. Private Sub Form_AfterUpdate()
  2. On Error GoTo Err_AfterUpdate
  3.  
  4.  
  5.     If Me.OpenArgs & "" <> "" Then
  6.         lngNewUSerID = Me.tb_UserKey
  7.         'Since user entered through the openargs argument, he is in the middle of a combobox update
  8.         'We dont want to allow more then 1 record being added this way, so close form
  9.         DoCmd.Close acForm, Me.Name
  10.     End If
  11. exit_AfterUpdate:
  12. Exit Sub
  13.  
  14. Err_AfterUpdate:
  15. MsgBox "Greska broj " & Err.Number & vbCrLf & Err.Description & vbCrLf & "u sub AfterUpdate()"
  16. 'Poruka ce da javi broj greske.
  17. Resume exit_AfterUpdate
  18.  
  19. End Sub

Pozdrav