Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date time
Message
From
13/01/2004 10:46:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Date time
Miscellaneous
Thread ID:
00866362
Message ID:
00866362
Views:
59
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.
Reply
Map
View

Click here to load this message in the networking platform