FOTO

JPAULO101 22/10/2011 10:37:23
#387412
Olá pessoal blz. Preciso gravar o caminho das fotos no banco access, mais não estou conseguindo acrescentar na mina sql. Tenho os campos Foto1 e Foto2 do tipo Texto.

sSQL = [Ô]INSERT INTO TBLFROTA(Id,Nome,Endereco,Numero,Cidade,Placa,Cpf,Cnh,Modelo,AnoMod,AnoFab,DataContrato) VALUES([Ô]
sSQL = sSQL & atxtId.Text & [Ô],[ô][Ô]
sSQL = sSQL & atxtNome.Text & [Ô][ô],[ô][Ô]
sSQL = sSQL & atxtEnd.Text & [Ô][ô],[ô][Ô]
sSQL = sSQL & atxtNumero.Text & [Ô][ô],[ô][Ô]
sSQL = sSQL & atxtCidade.Text & [Ô][ô],[ô][Ô]
sSQL = sSQL & atxtPlaca.Text & [Ô][ô],[ô][Ô]
sSQL = sSQL & atxtCpf.Text & [Ô][ô],[ô][Ô]
sSQL = sSQL & atxtCnh.Text & [Ô][ô],[ô][Ô]
sSQL = sSQL & atxtMod.Text & [Ô][ô],[ô][Ô]
sSQL = sSQL & atxtAno.Text & [Ô][ô],[ô][Ô]
sSQL = sSQL & atxtAnoFab.Text & [Ô][ô],[Ô]
sSQL = sSQL & IIf(atxtCont.Text = [Ô][Ô], [Ô]Null[Ô], [Ô]#[Ô] & Format(atxtCont.Text, [Ô]mm/dd/yyyy[Ô]) & [Ô]#[Ô]) & [Ô])[Ô]

con.BeginTrans
con.Execute sSQL
con.CommitTrans
JPAULO101 22/10/2011 10:39:27
#387413
Desculpa pessoal, abrie o topico em C#, mais a mesma e para VB.

Abraços
JPAULO101 22/10/2011 11:25:53
#387416
Moderadores, mudar topico para VB6, Agradeço.
Tópico encerrado , respostas não são mais permitidas