Forms

  • Thread starter Thread starter sarah2311
  • Start date Start date
S

sarah2311

Guest
if i am entering duplicate data for some fields - is there a way to pull the data from the last entry rather than re-typing each field - much the way excel will offer an existing entry if the text appears to be the same?
 
ok, I was asked to do something like this and this is the only way i could think of doing it.
Code:
Private Sub Form_AfterInsert()
    If Not IsNull(Me!myField) Then
        Me!myField.DefaultValue = me!myField
    End If
End Sub
So u basically change the default value for the field to the last value entered.
It works for me, but i'm only using it on two fields.
If you want to copy lots of fields maybe a copy/dupicate button that copies all the required fields to a new record?
 

Users who are viewing this thread

Back
Top Bottom