Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date time
Message
De
13/01/2004 10:46:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Date time
Divers
Thread ID:
00866362
Message ID:
00866362
Vues:
60
Boa Tarde,
Eu tenho um banco de dados do Access TESTE.MDB, com uma tabela CLIENTES que possui um campo ULTATU (última atualização) do tipo DataHora.
Estou querendo pegar os clientes com ULTATU >= a uma data qualquer usando esta linha...
Function ObterClientesPorUltatu (ttDATA As Datetime) As STRING
Local loXA As Xmladapter
Local lcXML As STRING
Local lnCONEXAO As Integer, lnRESULTADO As Integer
lnCONEXAO = sqlstringconnect("Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\temp\XML\TESTE.mdb;Uid=;Pwd=")
lnRESULTADO = 0

do while lnRESULTADO = 0
lnRESULTADO = sqlexec(lnCONEXAO, ;
"Select * from Clientes where ULTATU >= " + ttoc(ttDATA), "curCLIENTES")
enddo
Está dando erro, porque eu não sei como converter os valores acima para o mesmo tipo.
Alguém sabe como?


sds,

Juan Pablo Balue.
Répondre
Fil
Voir

Click here to load this message in the networking platform