Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    [Access] Routine con Criteri

    Salve a tutti....
    chi sa dirmi dove ho sbagliato in questa routine....continua a dirmi tipo non corrispondente:

    Private Sub Comando44_Click()
    On Error GoTo Err_Comando44_Click

    Dim stDocName As String
    Dim stLinkCriteria As String
    Dim stLinkCriteria2 As String

    stDocName = "TrasportoOrdine"

    stLinkCriteria = "[NumeroOrdine]=" & Me![NumeroOrdine]
    stLinkCriteria2 = "[Esercizio]=" & Me![Esercizio]
    DoCmd.OpenForm stDocName, , , stLinkCriteria And strLinkCriteria2

    Exit_Comando44_Click:
    Exit Sub

    Err_Comando44_Click:
    MsgBox Err.Description
    Resume Exit_Comando44_Click

    End Sub

    ho provato anche a scrivere:
    DoCmd.OpenForm stDocName,,,srLinkCriteria, &" and " & stLinkCriteria2

    Ma non funziona......

    Help meeee
    ULTRAREFLEX

  2. #2
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584

    Re: [Access] Routine con Criteri

    Originariamente inviato da ULTRAREFLEX
    ho provato anche a scrivere:
    DoCmd.OpenForm stDocName,,,srLinkCriteria, & " and " & stLinkCriteria2

    Ma non funziona......

    Help meeee
    La virgola che ti ho evidenziato in grassetto l'hai scritta anche in access oppure è un errore di battitura ?
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.