Page 1 of 1

[Solved] Equivalent macro to Update or refresh form

Posted: Sat Dec 08, 2018 11:39 am
by xeski
Hello everyone,

I'm new on macros and I'm trying to update a form after change in Listbox, it works with a button with associated action of "Update form"
but I can't find the equivalent macro to associate with the listbox.

I've search on the macro's library (macros in FormWizard) but without results...

Thanks in advance

Re: Equivalent macro to Update or refresh form

Posted: Sat Dec 08, 2018 2:44 pm
by longi
Hi!

Something like this?

Code: Select all

    oForm=Event.Source
    If oForm.isNew then
    oForm.insertRow
    Else
    oForm.UpdateRow
    End if
Bye! ;)

Re: Equivalent macro to Update or refresh form

Posted: Sat Dec 08, 2018 5:58 pm
by Villeroy