Try doing a Requery.
--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)
"Mehrdad" <(E-Mail Removed)> wrote in message
news:b183ae0b-7881-4a74-be20-(E-Mail Removed)...
> Hi there,
>
> I have created a table in Access which includes several fields and
> also have created a form for entering data to this table. Many records
> that I have to enter data have many common attributes and I don't want
> to type all these attribute for each new record. Instead, I need to
> copy the content of one record and paste this content to create the
> new record.
>
> To achieve this, I added a button to the form and added DoCms.RunSQL
> to create a new record based on the existing record in the form. When
> I hit the button a new record created in the table, but in the form
> there is no indication that a new record has been created (total
> number of records shown on the form remains unchanged). Even if I move
> to the first and last record, I cant see the newly create record. Only
> if I close the form and I reopen it, I can see that the new record is
> shown in the form.
>
> Does anyone know why the newly created record is not accessible
> instantly in the form?
>
> Many thanks