MaximoAccess

Caro Usuário, antes de postar pela primeira vez, leia as regras do fórum.

https://www.maximoaccess.com/t48-regras-do-forum

Obrigado

Administração


Participe do fórum, é rápido e fácil

MaximoAccess

Caro Usuário, antes de postar pela primeira vez, leia as regras do fórum.

https://www.maximoaccess.com/t48-regras-do-forum

Obrigado

Administração

MaximoAccess

Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Dicas Ms Access, Exemplos Ms Access, Codigos VBA Ms Access, SQL Ms Access


2 participantes

    Problem with Form_BeforeUpdate

    avatar
    Zeusangel
    Intermediário
    Intermediário


    Respeito às regras : Respeito às Regras 100%

    Sexo : Masculino
    Localização : Australia
    Mensagens : 72
    Registrado : 07/11/2011

    Problem with Form_BeforeUpdate Empty Problem with Form_BeforeUpdate

    Mensagem  Zeusangel 2/10/2012, 00:44

    Problem with Form_BeforeUpdate
    at the time of field validation in the form
    drives me once I close the form and I want to return to the field where needed to fill the field thanks in advance masters

    cyclops cyclops cyclops cyclops cyclops cyclops cyclops Shocked Shocked Shocked Shocked Shocked Shocked Shocked
    avatar
    Zeusangel
    Intermediário
    Intermediário


    Respeito às regras : Respeito às Regras 100%

    Sexo : Masculino
    Localização : Australia
    Mensagens : 72
    Registrado : 07/11/2011

    Problem with Form_BeforeUpdate Empty I have this code but just close the form

    Mensagem  Zeusangel 2/10/2012, 00:49

    I have this code but just close the form

    If IsNull([Organizacion]) Then
    MsgBox (" Introduzca la organizacion.")
    Cancel = True
    Me!Organizacion.Undo
    the form are emerging
    Leandro
    Leandro
    Developer
    Developer


    Respeito às regras : Respeito às Regras 100%

    Sexo : Masculino
    Localização : Brasil
    Mensagens : 1601
    Registrado : 12/11/2009

    Problem with Form_BeforeUpdate Empty Re: Problem with Form_BeforeUpdate

    Mensagem  Leandro 2/10/2012, 01:13

    Use the:

    Me.YourField.SetFocus

    In the Open of the form.

    p.s. my english is bad

    avatar
    Zeusangel
    Intermediário
    Intermediário


    Respeito às regras : Respeito às Regras 100%

    Sexo : Masculino
    Localização : Australia
    Mensagens : 72
    Registrado : 07/11/2011

    Problem with Form_BeforeUpdate Empty I have this code in my form

    Mensagem  Zeusangel 2/10/2012, 01:23

    I have this code in my form



    Option Compare Database
    Dim rs As Object
    Dim Modificado As Boolean
    Private Const LaTabla As String = "nombre de la tabla"
    ------------------------------------------
    Private Sub Form_Load()
    Me.YourField.SetFocus
    Set rs = CurrentDb.OpenRecordset(LaTabla)
    End Sub
    --------------------------------------------
    Private Sub Form_BeforeUpdate(Cancel As Integer)

    If IsNull([Organizacion]) Then
    MsgBox (" Introduzca la organizacion.")
    Cancel = True
    Me!Organizacion.Undo
    End If

    End Sub

    ------------------------------------------------
    Private Sub Form_Dirty(Cancel As Integer)
    Modificado = True
    End Sub
    -----------------------------------------------

    try the code you gave me and I get the form does not always go to the field with the focus, the form is closed <>
    bounce bounce bounce bounce bounce bounce bounce bounce Shocked Shocked
    avatar
    Zeusangel
    Intermediário
    Intermediário


    Respeito às regras : Respeito às Regras 100%

    Sexo : Masculino
    Localização : Australia
    Mensagens : 72
    Registrado : 07/11/2011

    Problem with Form_BeforeUpdate Empty How do I get in Form_Dirty or Form_BeforeUpdate

    Mensagem  Zeusangel 4/10/2012, 21:34

    How do I get in Form_Dirty or Form_BeforeUpdate me back to the Save button
    that's where I'm validating the fields, because Form_BeforeUpdate is the vanishing point to not go through form validation and if I put validation in Form_BeforeUpdate only recognize me the first field to validate after me and writes out the information form and is I do not want you to tell me if I want to save changes whether or not to give if I go again for validation or to send me to the Save button
    had already call Save () but I can not work someone's take hand in this, thank you very much in advance. Rolling Eyes Rolling Eyes Rolling Eyes Rolling Eyes Rolling Eyes Rolling Eyes Rolling Eyes Rolling Eyes Rolling Eyes Shocked Shocked Shocked Shocked
    avatar
    Zeusangel
    Intermediário
    Intermediário


    Respeito às regras : Respeito às Regras 100%

    Sexo : Masculino
    Localização : Australia
    Mensagens : 72
    Registrado : 07/11/2011

    Problem with Form_BeforeUpdate Empty I will not understand me or is that enverdar can not??

    Mensagem  Zeusangel 5/10/2012, 00:45

    I will not understand me or is that enverdar can not??
    will not do this validation events made ​​on the form??? bounce bounce bounce bounce bounce bounce bounce bounce

    Conteúdo patrocinado


    Problem with Form_BeforeUpdate Empty Re: Problem with Form_BeforeUpdate

    Mensagem  Conteúdo patrocinado


      Data/hora atual: 3/5/2024, 02:53