<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>31 Jul 2015 20:08:00 Z</lastBuildDate><pubDate>30 Jul 2015 08:28:00 Z</pubDate><description>I need to create a Data Source where the DOB month = a selected month (in alpha)...&#13;
&#13;
try as I might, I can't seem to get this to work:&#13;
&#13;
grsSql is string = [&#13;
SELECT *&#13;
FROM gpsdContact&#13;
WHERE bActiveMembershipFlag = 1&#13;
AND&#13;
dDOB &gt; '19000101'&#13;
AND&#13;
TO_CHAR(dDOB,MONTH) = '%1'&#13;
]&#13;
&#13;
(Instead of TO-CHAR, I've also tried WL.DateToString(dDOB,'MMMM') = '%1')&#13;
&#13;
grsSql = StringBuild(grsSql,"June")&#13;
HExecuteSQLQuery(grsdDataSource,grsSql)&#13;
&#13;
(The dDOB &gt; '19000101' is to handle case where there is no date in the field)&#13;
&#13;
Can anyone tell me where I'm going wrong?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53330-wb19-create-sql-data-source-dob-particular-month/read.awp</link><title>WB19 - Create SQL Data Source on DOB by a particular month</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53330-wb19-create-sql-data-source-dob-particular-month-53351/read.awp</comments><pubDate>31 Jul 2015 20:08:00 Z</pubDate><description>Thanks Piet -&#13;
&#13;
Yep, I tend to do that - make things more complicated - that's inexperience for you! lol</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53330-wb19-create-sql-data-source-dob-particular-month-53351/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53330-wb19-create-sql-data-source-dob-particular-month-53351/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53330-wb19-create-sql-data-source-dob-particular-month/read.awp">WB19 - Create SQL Data Source on DOB by a particular month</source><title>Re: WB19 - Create SQL Data Source on DOB by a particular month</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53330-wb19-create-sql-data-source-dob-particular-month-53349/read.awp</comments><pubDate>31 Jul 2015 13:17:00 Z</pubDate><description>Hi Joel,&#13;
&#13;
You are unnecessarily complicating the query by feeding the query parameter as a human readable month instead of dir…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53330-wb19-create-sql-data-source-dob-particular-month-53349/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53330-wb19-create-sql-data-source-dob-particular-month-53349/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53330-wb19-create-sql-data-source-dob-particular-month/read.awp">WB19 - Create SQL Data Source on DOB by a particular month</source><title>Re: WB19 - Create SQL Data Source on DOB by a particular month</title></item></channel></rss>
