MS Access: How to add 15 days to date (data type) in Access Web App - ms-access

My question is simple, How do I add 15 days to a "Field with Data type (Date/Time)" in Access Web App.
There is a Field called Revenue Plan which is a 'Date/Time' Data Type.
and in Billing Due I selected data type 'Calculated' and typed formula mentioned below
Tried :
[RevenuePlan] + 15 //didn't Work//
DateAdd("d",15,[Revenue Plan]) //didn't work//
these both didn't work. Please help me out with this.
Note: Its for Access Web App
Thanks,
Satish

The syntax is slightly different for an Access Web App for the DateAdd function.
The correct syntax should be
=DateAdd(Day,15,[Revenue Plan])
Here is the relevant MSDN link:
MSDN Link

Hello I could find the answer, Its below.
=DateAdd(Day,15,[Revenue Plan])

Related

getOffice365ActivationsUserDetail Graph API returns UnknownTenantId

I am trying to get the information about the users that have Activated Office 365 using:
/beta/reports/getOffice365ActivationsUserDetail?$format=text/csv
I am getting an error:
{
"code": "UnknownTenantId",
"message": "We do not recognize this tenant ID {MyTenantID}. Please double-check the tenant ID and try again."
}
The Read.Report.All permission is already assigned, and I am able to get other information from O365 using the Graph API.
Any suggestions how to resolve this issue?
You shouldn't be using the /beta/ release as this report is available in /v1.0/ and returns test/csv by default.
You also need to provide a valid period to the getOffice365ActiveUserDetail endpoint:
Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated.
For example, to get details for users active in past 7 days you would request:
https://graph.microsoft.com/v1.0/reports/getOffice365ActiveUserDetail(period='D7')

Access New ID Field YYYYMMNN [duplicate]

I need to automatically generate a 12 character value for my Business Key. Without any user interaction.
8 character -> Today Date (yyyymmdd or ddmmyyyy).
+
4 character -> Sequential Number (0001,0002,0003).
The Sequential Number must reset on each new day.
Is it possible to do this in Microsoft Access 2010+ without any coding involved?
Since you are using Access 2010+ the best way to accomplish your goal would be to use a Before Change data macro like this
To create the Before Change macro, click the "Before Change" button on the "Table" tab of the ribbon when the table is open in Datasheet View:
For more details on Data Macros see
Create a data macro
Good question, thanks for the challenge!
After some search, it seems it's possible to do that.
You can prefix the AutoNuber value by processing like the explanation available here: http://www.databasedev.co.uk/add_prefix.html
You can try to specify in the format of the field a format(now(),"ddmmyyyy").
Check this page for more informations, another user seems to have the same problem and got a solution: http://bytes.com/topic/access/answers/695188-custom-made-autonumber-show-todays-date
Hope it's helping you!

AX 2012 GL custom SSRS reports dont filter current extension (dataareaid)

i am facing a weird issue in AX 2012 R3 General Ledger reports (only the customized ones),
in all reports i created from scratch either query or DP based, which read from GL tables that don't save data per company (shared tables) such as GeneralJournalEntry ..., these reports retrieve all companies (legal entities) data, and don't filter by the current extension,
unlike the GL standard reports such as Trial Balance.
do you have any helpful ideas to solve it? Thanks in advance.
Finally i got it,
in the DP class, a similar code of the following must be added to the query object to have a range on the field GeneralJournalEntry.ledger to be equal ledger::current
as follows:
ds = query.dataSourceTable(tableNum(GeneralJournalEntry));
range = SysQuery::findOrCreateRange(ds, fieldNum(GeneralJournalEntry, Ledger));
range.value(SysQuery::value(Ledger::current()));
i hope this will be helpful to someone sometime.

Inconsistent time difference in facebook post graph API

Recently, i'm making an application which retrieve facebook posts of a page for a certain date. The issue that i've encountered is, there are some inconsistencies between the post unix time and the displayed date for some posts.
This is an example that i've found:
Created time from JSON reponse : "created_time": "2013-03-09T18:58:20+0000"
Displayed date :March 10, 2013 at 1:58am
The time difference is : 1:58 am - 18: 58 pm = 7 hr
then, for another post:
Created time from JSON reponse : "created_time": "2013-03-09T19:03:17+0000"
Displayed date :March 10, 2013 at 3:03am
The time difference is : 3:03 am - 19: 03 pm = 8 hr
And no, I didn't change my timezone inbetween displaying those two JSON response.
I use graph API and 'since until' parameter with unix timestamp for getting the JSON response.
Is there anyone who can explain this issue?
Thanks in advance! :)
After much more time spending on it..i found this helpful link to implement in my project...
i hope it may helpful to u also..
How to convert Date from facebook api into android app date format

PowerBuilder Find function throws an error "expression is not valid"

What is wrong with this code. I am checking whether there is an available record in the database before inserting a new serial number. When I enter any record whether available or not, it throws an error message:
"Expression is not valid". (PowerBuilder Classic 12.5 and SQL Server
2008)
If This.GetColumnName() = "serial_No" Then
long ll_serial
ll_serial=dw_newrecord.find(data, 1, dw_newrecord.rowcount())
if ll_serial>0 then
messagebox("validation error", "The record already exists")
return 1
end if
End If
It is likely that your data expression has a syntax error. It can be some misformed code -like missing quotes- or maybe that the column name is incorrect.
To help for tuning a filter or find expression, you can test it in the datawindow design screen via the Rows / filter menu.
A better solution for long-term coding design would be to integrate the Datawindow Debug Machine (made by a colleague of mine) to your project. It is a precious tool to prototype datawindow expressions for finding, filtering but also for dynamic objects creation / modification in a datawindow. And while correctly interfaced with a datawindow ancestor of your project, it can help with filters and find expression errors like here.
EDIT: As RealHowTo noticed, the tool has been updated. Here is the current latest version (but there is no updated demo screencast though).