| View previous topic :: View next topic |
| Author |
Message |
Froggica General User

Joined: 21 Sep 2007 Posts: 27
|
Posted: Wed Oct 17, 2007 1:28 am Post subject: [SOLVED] Macro "Save Record" |
|
|
Hy,
can anybody help please, i need macro for Save Record in form (Base).
Thank you!
Froggica
Last edited by Froggica on Wed Oct 17, 2007 10:15 pm; edited 1 time in total |
|
| Back to top |
|
 |
QuazzieEvil Super User

Joined: 17 Jan 2007 Posts: 599 Location: Houston, TX
|
Posted: Wed Oct 17, 2007 7:24 am Post subject: |
|
|
call the updateRow() method of the form.
example (bind to push button control)
| Code: |
Sub saveRecord(Event As Object)
Dim Form As Object
Form=Event.Source.Model.Parent
Form.updateRow()
End Sub
|
Not sure if you are aware that there is a button that will do that for you--located on form navigation bar--record also gets saved when you move out of record. |
|
| Back to top |
|
 |
Froggica General User

Joined: 21 Sep 2007 Posts: 27
|
Posted: Wed Oct 17, 2007 10:14 pm Post subject: |
|
|
Hy,
thank you very very much...this works perfectly. I know that there is a button located on form navigation bar, but i am doing a form for people that don't know much about the program and i want to make it easier so they can fill the form with no mistakes.
Thanks!!
Froggica _________________ "I've heard that it's possible to grow up, I've just never met anyone who's actually done it." |
|
| Back to top |
|
 |
|