• 0
Sign in to follow this  
RobinhoVB

CR8 filtrar datas em Base de Dados MYSQL

Question

Ola pessoal to de volta com problemas em FILTRAR DATA POR CRITERIO, lembrando que o Banco esta em MYSQL e o campo "data" ta no formato data do MYSQL ou seja YYYY-MM-DD

to querendo passar parametro de um label, que recebe uma data em dd/mm/aaaa vo postar o codigo:

Dim Criterio As String

Criterio = CDate(LblDATA.Caption) 'este Label recebe uma data em formato dd/mm/aaaa ex: 25/05/2012

RelatorioGeral.SelectionFormula = "{morto.data} = " & Criterio & ""

RelatorioGeral.DiscardSavedData = True

RelatorioGeral.Destination = crptToWindow

RelatorioGeral.Action = 1

OBS: O rpt "RELATORIOGERAL" esta ligado ao BD em MYSQL via ODBC

ta dando erro dizendo que "Uma data seria requerida aqui"

me ajuda ai meus queridos

grato ROBSON

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this