Re: create another field during running the Form

Tech-Archive recommends: Speed Up your PC by fixing your registry



ok but it's still error when i put this :DoCmd.GoToRecord acForm, Me.Name,
acNewRecord




John Vinson wrote:
>>actually, do you know when you go form and double click on the file? and you
>>see that the form is working and you just have to put the data entry in it?
>[quoted text clipped - 14 lines]
>>address: postcode:
>>telephone
>
>You're making this harder than it is.
>
>No code is needed.
>No button is needed.
>No message is needed.
>
>Access Forms do this automatically; if you tab off the last field in
>the tab order, you will be presented with a new blank record, ready to
>be filled in.
>
>If you WANT a button to do this, you can do so; create the button,
>call it cmdNewRecord, set its Caption property to "insert more
>partner", and view its Properties. On the Events tab find the Click
>property, and click the ... icon by it. Select the Code Builder and
>edit the code to:
>
>Private Sub cmdNewRecord_Click()
>DoCmd.GoToRecord acForm, Me.Name, acNewRecord
>End Sub
>
> John W. Vinson[MVP]

--
Wassim Sawan
Bachelor of Information Technology and major in information systems


Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200509/1
.


Quantcast