date formatting in query string
- From: Co <vonclausowitz@xxxxxxxxx>
- Date: Fri, 27 Jul 2007 23:48:24 -0000
hi all,
I'm trying to set up a query that uses the month chosen from a
combobox.
Let's say I choose the month "march", that is listindex 2 in the combo
+ 1 = 3 for march.
Now I want all docs with month march, so Month(document_date) = 3.
The following code returns an syntax error
.... AND Month(Document_Date)=" & Str(cboMonth.ListIndex + 1)
p.s. Document_Date is a fieldname in a database table, like
"12-03-2003".
Regards
Marco
.
- Follow-Ups:
- Re: date formatting in query string
- From: Bob Butler
- Re: date formatting in query string
- Prev by Date: Re: Deployment under Vista
- Next by Date: Re: Strange problem with PDW
- Previous by thread: Re: vb.net 2 programatically remove authenticated users group add IIS_
- Next by thread: Re: date formatting in query string
- Index(es):
Relevant Pages
|