Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Call A Funtion With In A Fucntion

Discussion in 'Information Technology' started by chellme, Jul 28, 2006.

  1. chellme

    chellme
    Expand Collapse
    Guest

    Hello!
    i'm an ms access beginer. how can i call a function with in a function. or
    how can i set that if i click the navigation button to the next record, it
    would prompt me to save changes or not. if yes it will run btn_save_click, if
    no it will run btn_undo_click????

    thank you.
     
  2. Loading...


  3. OP
    Arvin Meyer [MVP]

    Arvin Meyer [MVP]
    Expand Collapse
    Guest

    Something like this:

    Sub Form_BeforeUpdate(Cancel As Integer)
    If MsgBox ("Save changes", vbYesNo, "Save?") = vbYes Then
    btn_Save_Click
    Else
    btn_Undo_Click
    End If
    End Sub
    --
    Arvin Meyer, MCP, MVP
    Microsoft Access
    Free Access downloads
    http://www.datastrat.com
    http://www.mvps.org/access

    "chellme" <chellme@discussions.microsoft.com> wrote in message
    news:66B61915-AC54-4E44-A961-23427FEC85E6@microsoft.com...
    > Hello!
    > i'm an ms access beginer. how can i call a function with in a function.

    or
    > how can i set that if i click the navigation button to the next record, it
    > would prompt me to save changes or not. if yes it will run btn_save_click,

    if
    > no it will run btn_undo_click????
    >
    > thank you.
     
Since you're here... we have a small favor to ask...     Become a Supporter      ::     Make a Contribution     


Share This Page