ADODB.RECORDSET NULO
                    Olá
Tentei isso, mas eu achei idiota pq eu não trabalho com o valor do recordset e sim do caption :P
Erro 94
Valor nulo, como faço para ele "aceitar" e pelo menos definir o caption do label para "nenhum"
Agradeço desde já
                
            txt_forn1.Caption = RsPro!fornecedorTentei isso, mas eu achei idiota pq eu não trabalho com o valor do recordset e sim do caption :P
If RsPro!fornecedor = "" Then
    txt_forn1.Caption = "Nenhum"
    Else
    txt_forn1.Caption = RsPro!fornecedor
    End IfErro 94
Valor nulo, como faço para ele "aceitar" e pelo menos definir o caption do label para "nenhum"
Agradeço desde já
                    Tu tem qu testar se tá nulo tb.
If isnull(RsPro!fornecedor) or RsPro!fornecedor = "" then
txt_forn1.Caption = "Nenhum"
Else
txt_forn1.Caption = RsPro!fornecedor
End If
Att
Charles
                
            If isnull(RsPro!fornecedor) or RsPro!fornecedor = "" then
txt_forn1.Caption = "Nenhum"
Else
txt_forn1.Caption = RsPro!fornecedor
End If
Att
Charles
                    tente isso :
txt_forn1.Caption = iif(isnull(RsPro!fornecedor)), "Nenhum", RsPro!fornecedor)
                
            txt_forn1.Caption = iif(isnull(RsPro!fornecedor)), "Nenhum", RsPro!fornecedor)
                    ... [S91]
                
            
                    Aqui você tem dias soluções:
1) txt_forn1.Caption = RsPro!fornecedor & ""
2) If isnull(RsPro!fornecedor) Then
txt_forn1.Caption = "Nenhum"
Else
txt_forn1.Caption = RsPro!fornecedor
End If
Fish
                
            1) txt_forn1.Caption = RsPro!fornecedor & ""
2) If isnull(RsPro!fornecedor) Then
txt_forn1.Caption = "Nenhum"
Else
txt_forn1.Caption = RsPro!fornecedor
End If
Fish
                        Tópico encerrado , respostas não são mais permitidas
                    
                
