OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[SOLVED] Macro "Save Record"

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Froggica
General User
General User


Joined: 21 Sep 2007
Posts: 27

PostPosted: Wed Oct 17, 2007 1:28 am    Post subject: [SOLVED] Macro "Save Record" Reply with quote

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
View user's profile Send private message
QuazzieEvil
Super User
Super User


Joined: 17 Jan 2007
Posts: 599
Location: Houston, TX

PostPosted: Wed Oct 17, 2007 7:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Froggica
General User
General User


Joined: 21 Sep 2007
Posts: 27

PostPosted: Wed Oct 17, 2007 10:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group