I've been developing a database for a call billing system in Access 2013. I've encountered a very strange issue when creating a query in Microsoft Access 2013. On the Query design tab.
If I create a new Query and have that Query display just one field of a table with 38 entries, the output shows 38 records, which is correct.
However, when I 'add' another table from show table command. Depending on the number of records in the new table, e.g 3 and then run the query without adding any additional fields to the query, the output shows a total of 114 records i.e 38 sets of 3 duplicates!
I've no idea as to why it does this?
Related
I know that I can use something like:
=First(Fields!Group.Value, "helloWorldReport")
=Last(Fields!Group.Value, "helloWorldReport")
To get the first and last records of my dataset. However, how can I get the ones in between them? What if I have 9 or 10 other records, can I programmaticaly access to a specific record, i.e. record number 7?
This issue is slowly driving me mad. My report structure is thus:
Group 1 - Department
Group 2 - Secondary Department
Group 3 - Author
Group 4 - Task
At the top level (Department) I want to show the length of all tasks. This is collected from a database and is in seconds. An example column:
5
7
14
12
23
8
8
I expect this to be 77. When the user drills down to the 4th level, Task, they can click a link that takes them to a subreport.
This subreport is a task audit (i.e, information on each time the task was interacted with (such as opening, closing, saving etc.) typically, there might be 3 or 4 rows in the audit).
The subreport is linked to the main report via the GUID of the task. Ergo, when the user clicks the link on level 4, they see an audit for that task.
With no subreport, it works as expected and the total length is set to 77 seconds. However, with the subreport, the number is much higher, for example, 245 seconds. The number is always the actual length of time * the number of times the task appears in the audit (if there are 4 rows in the audit, the length is 4 times higher than it should be)
Is there ANY way I can make this link 'one-way'? I do not want my subreport to be affecting my actual main report, I just want it to be a link to show another report, filtered by the task's ID.
Failing this, is there any other way to properly calculate the sum of the data in this column whilst ensuring it ignores the subreport? The subreport uses a different table and does not have the same column.
Thanks
I have an access form with few controls on it, like start-date, end-date, move_type, mover_name etc, when user fills this field n clicks on query command button, a select query is run and it fetches records from various tables depending upon the criteria mentioned by the user.
Later the same records are exported to excel file and a report is generated for user.
Now I need to do more with this, my select query has a field "quoted-price", depending upon the price quoted the records need to be sorted out.
EX : if quoted_price < 500 then it is a "domestic apartment1", if quoted-price is >500 And <1500 it is "domestic Apartment1" etc.
Now I need to do more with this, my select query has a field "quoted-price", depending upon the price quoted the records need to be sorted out.
EX : if quoted_price < 500 then it is a "domestic apartment1", if quoted-price is >500 And <1500 it is "domestic Apartment1" etc. and when all the records generated through select query are searched on this criteria, the records need to be grouped accordingly. Later the count for individual category is multiplied by a unit value and total charge is calculated.
I tried building many queries to do this and tables to refer to value but of no use. Any help will be much appreciated.
are you looking to create a new field depending on the condition? That may be step one of what you are trying to do, If so that is pretty easy. See here: http://allenbrowne.com/casu-14.html
I am very new to BO webintelligence.
I am doing a very simple query, retrieve Sales Amount for dates between 2012 and 2013. Just for this simple query when I run it, my BO crashes or gets stuck on "please wait" window. Why is this happening? If I select like 3 or 4 days like between Jan 1st 2012 and Jan 4th 2012, it runs fine. Is there anything from my end that I am doing wrong? This is in production mode.
I also wanted to point out that I have tried limiting my data set for specific region etc.
Too many unknowns to successfully assist. I presume this is webi 3.1.x or 4.1.x and I presume that the Sales Amount is a measure and that your query includes a date which does not include a time component. If you only have these two objects in your results pane and have the region in your conditions then pulling something like [Date] and sum([Sales Amt]) should not take long to execute. As previous poster suggests, try to execute the sql in a tool like SQL*Developer or Management Studio or however the source database / OLAP is stored.
Even though you've limited the data to a "region" this may be too much data. Try selecting a smaller result set of 100 rows or changing the option for "retrieve duplicate rows" on the query panel.
If possible, post the query from your report using generic object names?
I am having an issue with inserting records into CoreData after parsing XML webservice. I parse the web service and store the records in an array and the count i get for array is 239. Before i insert the data i see the array count for existing core data.Its 0 records. So now i push the data into the coredata. All goes well. But, i end up with 1 extra record. A duplicate for an existing record. The count i get is 240.HOw is it happening?I did this process with another table.I got from the webservice for this new table table this time 113 records. After i insert the data, the table has 114 records and 1 extra record(duplicate again). I check using the firefox add on sqlite manager. Peculiar thing to note is that there is a field (not the one i designed) called Z_OPT, which has the value 239 (remaining fields identical) and for the table with 113 records the 114th record has z_OPT= 113(remaining fields identical).Did this happen to anyone?Any information would be of great help. If you need more information, please ask.Thanks...