estampidate 0 Newbie Poster

Excuse me if is a silly question...

I call a Function to deploy a simple form (data from a table with just one record)
DoCmd.OpenForm display form with first record data but CONTINUES excecution!! -Doesn't wait to get typing or clickling-

Function PedirDatos()

    DoCmd.OpenForm ("Asunto y Cuerpo email")

   Subjectline$ = Forms![AsuntoCuerpoemail].Asunto
   If IsEmpty(Subjectline$) Then
    MsgBox "Sin Asunto no se envian correos masivos" & vbNewLine & vbNewLine & _
      "Saliendo...", vbCritical, "Envio de Correos MASIVOS"
    End
   End If
   Body$ = Forms![AsuntoCuerpoemail].Cuerpo
   MyBodyText = Body$

End Function

How Do I order Stop and wait for types?

How Do I code "continue" after fill form? -Event code after click Exit button

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.