cercando in rete ho trovato un preve brogramma in basic per filtrare un form:

Sub setFilter

' reserve some variables
Dim TopForm As Object
Dim SubForm As Object


' Fetch the appropiate form TopForm = ThisComponent.DrawPage.Forms.GetByName("versamenti fatti") SubForm = TopForm.GetByName("versamenti")


' Now we set the filter attribute SubForm.Filter = "ricevuti.data LIKE 'datadacercare'" Subform.Applyfilter = "TRUE" ' and don't forget to reload SubForm.reload()

End Sub



Il mio problema � che io devo filtrare non una stringa, ma una data, ovvero voglio visionare solo i dati del (ad esempio) 2004. Ora, il comando LIKE ha una sintassi che riesco a far funzionare solo con stringhe, ma non con le date.
Qualcuno conosce la sintassi, o dove posso trovare della manualistica che ne parla (ho provato la guida staroffice basic, ma non c'� nulla)



grazie


f.

--
http://www.venerandi.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Rispondere a