<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[format באקסס לא נותן פתרון, מה הפתרון לתאריכים הפוכים?]]></title><description><![CDATA[<p dir="auto">אני בונה שאילתת SQL בVBA עם WHERE מפקדים בטופס<br />
בכל תאריך שהיום קטן מ13 הוא הופך אותם לmm/dd<br />
כשהסדר בטבלה היא dd/mm<br />
מה שקורה שהוא מסנן לי את הנתונים הלא נכונים.</p>
<p dir="auto">שמתי debug.print על הסטרינג המתקבל, ובפלט הוא נותן את זה בצורה נכונה dd/mm/yyyy<br />
אבל כשאני מעתיק את הסטרינג לשאילתה הוא נהפך...</p>
<p dir="auto">כמובן שניסיתי עם format להפוך אותו וכלום לא עוזר.</p>
<p dir="auto">בינתיים עשיתי עקיפה של סינון לפי התאריך העברי שמתקבל מהפקד בטופס... <img src="https://tchumim.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f644.png?v=9d71ebe86e6" class="not-responsive emoji emoji-android emoji--face_with_rolling_eyes" style="height:23px;width:auto;vertical-align:middle" title=":face_with_rolling_eyes:" alt="🙄" /></p>
<p dir="auto">יש למישהו איזה רעיון לפתרון?</p>
]]></description><link>https://tchumim.com/topic/6957/format-באקסס-לא-נותן-פתרון-מה-הפתרון-לתאריכים-הפוכים</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 01:39:33 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/6957.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Nov 2019 14:23:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to format באקסס לא נותן פתרון, מה הפתרון לתאריכים הפוכים? on Wed, 13 Nov 2019 11:38:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%9E%D7%9C%D7%90">@<bdi>מלא</bdi></a></p>
<ol>
<li>תשתמש עם הקבלה בפורמט, זה יעזור רק אם אין לך טון נתונים<br />
לדוגמא</li>
</ol>
<pre><code>select date_col from table 
where format(date_col,"ddmmyyyy")=format(forms!frmtest!date_col_textbox,"ddmmyyyy")
</code></pre>
<p dir="auto">כתבתי את השאילתא מהזיכרון ככה שיכול להיות שהיא לא מדוייקתלגמרי</p>
<ol start="2">
<li>לחילופין, תשתמש עם</li>
</ol>
<pre><code>BuildCriteria("date_col",dbDate,me!date_col_textbox)

</code></pre>
<ol start="3">
<li>ולסיום, אצלי אני משתמש לפעמים בזה - רק בשביל הנוחות</li>
</ol>
<pre><code>
Public Function fnDate(DateFormat As String) As String
fnDate = Format(DateFormat, "mm/dd/yyyy")
End Function
</code></pre>
<p dir="auto">שימוש</p>
<pre><code>Set rs = CurrentDb.OpenRecordset("SELECT * FROM table WHERE Mon=#" &amp; fnDate(Me!Mon) &amp; "#" )
</code></pre>
]]></description><link>https://tchumim.com/post/81811</link><guid isPermaLink="true">https://tchumim.com/post/81811</guid><dc:creator><![CDATA[clickone]]></dc:creator><pubDate>Wed, 13 Nov 2019 11:38:12 GMT</pubDate></item><item><title><![CDATA[Reply to format באקסס לא נותן פתרון, מה הפתרון לתאריכים הפוכים? on Wed, 13 Nov 2019 11:09:51 GMT]]></title><description><![CDATA[<p dir="auto">אז בסוף סתם דמייני שזה עוזר,<br />
כי את היום (13/11/19) הוא הפך אותו ל 19/11/13</p>
<p dir="auto">בינתיים הסתדרתי עם cdbl<br />
שהופך את התאריך למספרי.<br />
<img src="/assets/uploads/files/1573643136376-6821b2a1-795c-4d58-abc2-bf0e2a3ba099-image.png" alt="6821b2a1-795c-4d58-abc2-bf0e2a3ba099-image.png" class=" img-fluid img-markdown" /><br />
כשנותנים לתאריך where<br />
עם הערך המספרי שלו הוא מחזיר אותו.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/clickone">@<bdi>clickone</bdi></a> אולי לך יש מידע בנושא?</p>
]]></description><link>https://tchumim.com/post/81804</link><guid isPermaLink="true">https://tchumim.com/post/81804</guid><dc:creator><![CDATA[מלא]]></dc:creator><pubDate>Wed, 13 Nov 2019 11:09:51 GMT</pubDate></item><item><title><![CDATA[Reply to format באקסס לא נותן פתרון, מה הפתרון לתאריכים הפוכים? on Thu, 07 Nov 2019 15:25:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%9E%D7%9C%D7%90">@<bdi>מלא</bdi></a> אם לא עוזר, תוסיף # מהצדדים.</p>
]]></description><link>https://tchumim.com/post/81279</link><guid isPermaLink="true">https://tchumim.com/post/81279</guid><dc:creator><![CDATA[Shmuel754]]></dc:creator><pubDate>Thu, 07 Nov 2019 15:25:15 GMT</pubDate></item><item><title><![CDATA[Reply to format באקסס לא נותן פתרון, מה הפתרון לתאריכים הפוכים? on Thu, 07 Nov 2019 15:14:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shmuel754">@<bdi>Shmuel754</bdi></a><br />
גם לא עוזר.</p>
<p dir="auto">בינתיים זה עובד נהדר..</p>
<pre><code>    Dim dtDate As Date
    dtDate = Month(Me.lstDate) &amp; "/" &amp; Day(Me.lstDate) &amp; "/" &amp; Year(Me.lstDate)
</code></pre>
]]></description><link>https://tchumim.com/post/81278</link><guid isPermaLink="true">https://tchumim.com/post/81278</guid><dc:creator><![CDATA[מלא]]></dc:creator><pubDate>Thu, 07 Nov 2019 15:14:29 GMT</pubDate></item><item><title><![CDATA[Reply to format באקסס לא נותן פתרון, מה הפתרון לתאריכים הפוכים? on Thu, 07 Nov 2019 14:49:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%9E%D7%9C%D7%90">@<bdi>מלא</bdi></a> תעביר את התאריך לשאילתה דרך פונקציית FormatDateTime שהתוצאה תכלול את פורמט התאריך המלא ועדיף בפורמט הפוך yyyy-mm-dd</p>
]]></description><link>https://tchumim.com/post/81275</link><guid isPermaLink="true">https://tchumim.com/post/81275</guid><dc:creator><![CDATA[Shmuel754]]></dc:creator><pubDate>Thu, 07 Nov 2019 14:49:40 GMT</pubDate></item></channel></rss>