USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Evento Click do Dbgrid
Knight
GOIÂNIA
GO - BRASIL
Postada em 19/09/2005 17:18 hs         
Escrevi um código q esta colocado dentro do evento click da dbgrid.
Só q o evento só dispara depois q eu dou o segundo click na DBgrig
 
O código é o seguinte:
 
On Error GoTo DBGrid1_Click_ERR
Dim TB_TEMP_FOTO As Recordset
Set TB_TEMP_FOTO = MASTER.OpenRecordset("Select FOTOS from PRODUTOS where CODIGO =" & DBGrid1.Columns("Código"))
If Not TB_TEMP_FOTO.EOF And Not TB_TEMP_FOTO.BOF Then
Call Redimencionar(Image1, Picture1, TB_TEMP_FOTO!FOTOS)
End If
TB_TEMP_FOTO.Close
Set tb_temp_fotos = Nothing
DBGrid1_Click_ERR:
If Err = 94 Then
    Resume Next
End If
 
Alguem pode me ajudar???
 
Agradeço desde já
 

Emoções Knight Emoções

http://host.csti.eti.br

CSTI WebHosting
Hospedando Idéias Emoções

     
ArtSoft
SAO PAULO
SP - BRASIL
Postada em 19/09/2005 18:12 hs         
Fala companheiro Knight,

Coloque seu codigo dentro da private abaixo :
 
Private Sub DBGrid1_Click()
 
On Error GoTo DBGrid1_Click_ERR
Dim TB_TEMP_FOTO As Recordset
Set TB_TEMP_FOTO = MASTER.OpenRecordset("Select FOTOS from PRODUTOS where CODIGO =" & DBGrid1.Columns("Código"))
If Not TB_TEMP_FOTO.EOF And Not TB_TEMP_FOTO.BOF Then
Call Redimencionar(Image1, Picture1, TB_TEMP_FOTO!FOTOS)
End If
TB_TEMP_FOTO.Close
Set tb_temp_fotos = Nothing
DBGrid1_Click_ERR:
If Err = 94 Then
    Resume Next
End If
 
end sub
 
ALEXANDRE COSTA
ARTSOFTSYSTEMS
 
     
Knight
não registrado
Postada em 19/09/2005 19:39 hs   
É nesse evento q esta.
     
ArtSoft
SAO PAULO
SP - BRASIL
Postada em 20/09/2005 10:17 hs         
BOM DIA !!!
 
Desative o On Error, pois deve estar gerando algum erro diferente de 94 consequentemente voce não percebe, achando que não entra na rotina !!!
 
ALEXANDRE COSTA
ARTSOFTSYSTEMS
 
     
Página(s): 1/1    


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2026   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página