G
Guest
Hi
....
can anyone help me with this code in the not in list event - i cant get the following form to open at the new value that has been inserted..
Im using a numeric field .. maybe thats the problem.. but how can i change the code?
strSQL = "Insert Into ukjent ([Nummer]) values ('" & NewData & "')"
'MsgBox strsql
CurrentDb.Execute strSQL, dbFailOnError
FindCriteria = Me![Nummer_har rolle]
DoCmd.OpenForm "ukjent objekt", , , , , , FindCriteria
and this is the code that opens the new form:
If Not IsNull(Me.openargs) Then
Me.RecordsetClone.FindFirst "[Nummer] = " & Nz(Me.openargs)
Me.Bookmark = Me.RecordsetClone.Bookmark
Hope somone can help a newbie!
Erik
....
can anyone help me with this code in the not in list event - i cant get the following form to open at the new value that has been inserted..
Im using a numeric field .. maybe thats the problem.. but how can i change the code?
strSQL = "Insert Into ukjent ([Nummer]) values ('" & NewData & "')"
'MsgBox strsql
CurrentDb.Execute strSQL, dbFailOnError
FindCriteria = Me![Nummer_har rolle]
DoCmd.OpenForm "ukjent objekt", , , , , , FindCriteria
and this is the code that opens the new form:
If Not IsNull(Me.openargs) Then
Me.RecordsetClone.FindFirst "[Nummer] = " & Nz(Me.openargs)
Me.Bookmark = Me.RecordsetClone.Bookmark
Hope somone can help a newbie!
Erik