Dear All,
I tried to use DatePart('m',MyDate) to get the month,in a query, it worked fine. But when I apply the month as criteria in a form, it didn't work. after running the query, the result is bland, containing no record. Here's what I have in a form query:
TotalFinalIn: DSum("AmountFinal","qryManagerialCostCalc","ActualMonth=" & Nz([Forms]![frmOfficeLocationProfit]![MonthCalc],0))
The MonthCalc in the form is unbound text box. and on the form load event I use: Me.MonthCalc=Month(Date), I want to calculate the total managerial cost in the current month.
Please help.
Best Regards,
Kevin
__._,_.___
Posted by: Qingqing <qingqinga@yahoo.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.
SPONSORED LINKS
.
__,_._,___
Tidak ada komentar:
Posting Komentar