The code that the wizard makes looks like this, are you sure your doing it right?
Sub List8_AfterUpdate() \' Find the record that matches the control. Me.RecordsetClone.FindFirst \"[Id] = \" & Me![List8] Me.Bookmark = Me.RecordsetClone.Bookmark End Sub
In the objects properties you can see the available events unbder the events Tab. Click on one of these and yiou will see a little button appear beside the field. Click on this and then choose Code builder. Access will only make sub start and end, you have to add other code yourself. Access doesnt know what you want to do.
Sometimes you will see that there are parameters to the sub for example the before update to a field Private Sub txtDate_BeforeUpdate(Cancel As Integer)
Here you could evaluate the data and if it snot correct you could set Cancel to true which informs Access to stop updatimng the field.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.