ho due textbox e devo fare il controllo se l'utente immette almeno qualcosa.
ecco il codice:
codice:Dim aaa, bbb As String aaa = Testo253.Text bbb = Testo255.Text MsgBox aaa MsgBox bbb If Testo253.Text = "" Or Testo255.Text = "" Then MsgBox "Inserire i campi obbligatori", vbInformation, "Errore" Else Dim stDocName As String stDocName = "inviaemail" DoCmd.RunMacro stDocName End If
L'errore già si verifica quando tento di mettere nella variabile aaa il testo presente in testo253
quale potrebbe essere l'errore?
grazie

