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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only