Google
 

it » comp » appl » access

anteprima su record corrente

di (Private Sub Comando54_Click())
il Tue, 10 Jul 2007 08:24:30 +0200
newsgroups it.comp.appl.access
message-id <f6v8mu$f6l$1@news.newsland.it>

tabella: Anagrafe,  campi "CF" e "cittadino_italiano"
form: anagrafe,  controllo campo "CF" gruppo d'opzioone "cornice167" con
valori 0 o 1
Report: schedait
report: schedaeuropa
devo visualizzare il report schedait se cittadino_italiano è uguale a 0
devo visualizzare il report schedaeuropa se cittadino_italiano è uguale a 1
questo con il record corrente visualizzato sulla form
ho provato con 
Private Sub Comando54_Click()
On Error GoTo Err_Comando54_Click

    Dim stDocName As String
if cornice167 = 0 then
    stDocName = "SCHEDAit"
    DoCmd.OpenReport stDocName, acPreview, , , "cf" & Me.CF
else
 cornice167 = 1 then
    stDocName = "SCHEDAeuropa"
    DoCmd.OpenReport stDocName, acPreview, , , "cf" & Me.CF
end if

Exit_Comando54_Click:
    Exit Sub

Err_Comando54_Click:
    MsgBox Err.Description
    Resume Exit_Comando54_Click
    
End Sub

il tutto NON MI FUNZIONA!
addò diavolo sbaglio?
grazie
luigi

-- 

questo articolo e` stato inviato via web dal servizio gratuito 
http://www.newsland.it/news segnala gli abusi ad abuse@newsland.it


Tutti i messaggi della discussione