Genaral Month Sorting Query - Help?!
Hi i have a general query and im not sure which section to put it in yet
Basically i need to have a date choosing system which allows me to enter dates once into the form and then print out monthly reports on which of our clients is to be sent a report,
some clients are half yearly, some quarterly, some yearly, at present i have a drop down box for these choices and a drop down box for month
is there a way of combining the half yearly and month ie May to come up with nov so that When i want to print out may's report, Mr X (who has a half yearly report) can have half yearly chosen and May chosen but still get on both the novembr and May print out along with mr Y who only has a yearly report in May
I do not really want to have to change the values in the drop down boxs as i do not think employees would do it and the system would be inaccurate
If a query could be made which somehow combined annual may and half Annual May, AND would also work out that half annual may would become Nov? ie: Annual Nov and Half Annual May
Im confused about the best way to do this so any suggestions would be v much appreciated :)
I dont know if the drop down system is the best way or how i would make a query to make this work and what the best method of making the reports is? any help much appreciated
H
View Complete Forum Thread with Replies
Related Forum Messages:
Sorting By Month
I have looked and tried a lot of things that I have seen in this forum, but I am not able to make this work. I have a query that I am trying to sort a table field, "Date" by month. The field has a "General" time/date format in the table. This is the last code I tried, but as you can see I am not much with VB. Please see if you can help me. The table name is "Batch Data" and the field name is "Date". Thanks, Robert SELECT Format([Batch Data].[Date],'General Date') AS formDate FROM [Batch Data] ORDER BY [Date];
View Replies !
Sorting By Chronological Month
I have my query set up, but I want it to sort by chronolological month and not alphabetically. Below is the SQL statement. GROUP BY [Implementation Pipeline].[Parent Company], PUR_OWN_ASC_11.CUST_ID, MonthName(PUR_OWN_ASC_11!PERIOD,False), [Implementation Pipeline].[Transition to FSCR/AM] HAVING (((MonthName([PUR_OWN_ASC_11]![PERIOD],False))<"October")) ORDER BY MonthName([PUR_OWN_ASC_11]![PERIOD],False) DESC;
View Replies !
Query Design. Current Month. Ytd, Last Ytd/month Same Query
I know i know, double posting.. sorry posted it in wrong thread figured i get more hits this way... if anyone of you experts can help i'd greatly appreciate it. Structure: customer table - custid pk factory table - facid pk transaction table - custid - facid - orderdate - amount The results should look like this in a query doing a search on order date between 01/01/06 and 05/30/06 factory name salesman cur mo lst yr mo DT Range Lst Yr Range %Diff %Ovrall Curr YTD (0606) (0605) 01/01/06- 01/01/05 - Total 05/30/06 05/30/05 ------------------------------------------------------------------------- cust1 $123.00 50.05 60.00 120.00 -50 1.27 500.00 cust2 $223.00 70.05 100.00 .00 100 15.00 00.0 cust3 0.00 0.00 0.00 50 -0 .2 50.00 hopefully you get the idea. completed sum amount groupings by facid, emp id and cust id. i've tried breaking it down to current month year query and last month year queries. the trick is trying first combine the categories and do an outer join with both the factories and customer table where it shows all factories that DO have a match to the query and showing factories and all customers not having transactions. thanks in advance to anyone that can help..
View Replies !
Month By Month Query
please help me i have a date field called open & i need to generate a query to count all entries by month, so far i can get all cases each day, but i'm unable to get the query to count them just based on the month & year.. any ideas please
View Replies !
Help With Sorting A Query?
I have a job database where I sort jobs by upcoming, inactive, closed and active. Each has a corresponding number 1-4 respectively. The main table I update the jobs in is the JOB TABLE. I print a weekly report for our weekly meeting but I only want the active jobs in the report. My question is: how do I perform a sort function in the query, so I will have only the active jobs in the database table show in the query? Thanks in advance! If more info is needed I wil post additonal.
View Replies !
Sorting In A Query
I'd like to sort in my query - used to populate a combo box - first by name, and then by ID. Is there a way to force Access to sort in a particular order? It seems like it starts sorting with the first field that's to be sorted, but I want it to start with field 2 and then sort by field 1.
View Replies !
Sorting A Query
I am fairly new at relying heavily on Access for my programming. Problem: I have a telephone database with call detail for every call. I only want specific records, which I am pulling by selecting sort (in query design mode) for that particular field. I need to sort like you would in Excel (Column A first, Column B second, and etc). Can someone help direct me in the right path as to how I need to run a mulitple sort? Your help is much appreciated.
View Replies !
Sorting A Table, Apply The Sorting To A Form
Hi all. I've created a database which contains information about stores. I want to have the forms automaticly sorted by the department number. I've tried to sort the table by department, but when I try to add a department, the sorting doesn't seem to affect the form at all. Lets say I have department 1,2,3,6,7,8 in the form, and I add department 4, it will be the last post in the form. I want it to be the fourth, and so on.. I'd apreciate some help with this :) Thanks Here's the database (http://www.access-programmers.co.uk/forums/attachment.php?attachmentid=12934&stc=1&d=1142018915&PHPSESSID=f730b7f11f6983965698faeacbe5a1ee)
View Replies !
Sorting Further From A Duplicates Query
I have a Duplicates Query that extract the following information from my Table Name Surname DOB Joined The query then extracts info such as... Bill Smith 25:12:70 1999 Bill Smith 25:12:70 2005 Most of the time the 'Joined' field has the same year. But I need to find the ones where the year differs but the rest of the information is exactly the same. Because there is 15000 odd records to check, I thought that there would be a quicker way to check. Could someone please assist me with this query if it is possible? Thank you in advance.
View Replies !
Sorting Crosstab Query
I have a crosstab query where my column headings are the names of the months based on invoice dates. what i currently have: Month: MonthName(Month([AnnualIncome]![InvoiceDate])) so this spits out April May and June in the column headings. The problem is that it is sorting it alphabetically, not by the numerical value - so my column headings are coming out as april, june, then may. (I assume once I have july that will come in between april and june.) Any help would be REALLY appreciated. Thanks in advance.
View Replies !
Sorting Records In A Query
I am having a problem sorting records in a query. I have about 5, 000 entries in a table and when I build my query based on certain fields, the numbers in certain columns are not in order although I use the sorting feature. ( e.g.) I have 5 columns with numbering data contained in the columns, and I have it set up to sort in ascending order, which it did, but I noticed that the Volume # column sorts the Volume numbers differently (see example below): V. 1 V. 10 V. 11 V. 12 then it goes back to V. 2 V. 3 V. 4 V. 5 V. 6 V. 7 V. 8 V. 9 It looks like it sorts anything with a 1 first then the rest later. How do I fix this? Thanks.
View Replies !
Sorting Query Results
Hi I have a problem sorting some query data and I wonder if someone could help point me in the right direction. I have a query with two columns, in the first column is a number (either 6 or 7) and the second is the name of a business. Eg Column 1 Column 2 6 Pizzas & Co 6 Pizzas & Co 7 Pizzas & Co 6 IPM Ltd 7 IPM Ltd 6 Computer Sales Ltd 6 Computer Sales Ltd 6 Computer Sales Ltd 7 Computer Sales Ltd 7 Computer Sales Ltd 7 Computer Sales Ltd 7 Computer Sales Ltd 7 Computer Sales Ltd And I want to produce some another query so that the output which looks like: Column 1 Column 2 (6's) Column 3 (7's) Pizzas & Co 2 1 IPM Ltd 1 1 Computer Sales Ltd 3 5 So for each company name, I am essentially doing a frequency count for all the 6's and 7's. I think this must be relatively easy to do, but I am getting it wrapped around my head! Many Thanks, Lee
View Replies !
Sorting Query & PivotChart
Hey everybody, I know this question maybe be very lame but its been ages since i've touched on my sql knowledge. I've set out my database and i have 1 table which is holding the info i need to extract so that i may put it into my report. I wish to count the different values in a specific row: Example: Whats the problem Behavioural Physical Physical Behavioural I wana be able to count these seperately as in: SELECT COUNT(Client.[Whats the problem] LIKE 'Physical') AS Phy AND COUNT(Client.[Whats the problem] LIKE 'Behavioural') AS Beh FROM Client; Result: Phy Beh 2 2 I havent got a clue if i'm doing it right but i need to get it to work in access 07. Also one more question i have created a Pivotchart in a form but when a create a button on my main startup form and click into the Pivotchart form all i get is the Datasheet view, how can i get it to open up the Pivotchart through the form. Any info would be greatly appreciated Thank You.
View Replies !
Query For Month
Anyone know if i can use DateAdd or something like in a query to show current month I want the user to be able to see records for the month we`re in Thanks all
View Replies !
Month Query Help?
Hi Everyone, I come to you guys for help once again, Here is my query code: Total Records: Count(IIf([Record #]=1 And [Date]=Month([3]),0)) I think I am formatting this wrong, I would like to query data based on the record number equaling 1 and the month in the [Date] field equaling March. Could anyone help me with the proper formatting of this? Thanks in advance!
View Replies !
Way To Only Query Day And Month?
Hi, I was wondering is there a way to only QUERY day and month? dd/MM ? The issue is i need to build a report that has all the accounts opened within a certain month/time period. BUT its not year specific so i would need for instance. 01/02 to 28/02 dd/mm dd/mm Note: The date stored in the DB is in this format dd/mm/yy < Standard format. Is there a way to do this? Your help is much appreciated... THANK YOU.. Cheers Tristan F
View Replies !
Sum By Month Query
Would someone be so kind as to tell me why I get Err in the Runtot field from this query ? It seems to run fine except no totals. SELECT DatePart("yyyy",[Recdate]) AS AYear, DatePart("m",[Recdate]) AS AMonth, DSum("Creditamt","DatePart('m', [Recdate])<=" & [AMonth] & " And DatePart('yyyy', [Recdate])<=" & [AYear] & "") AS RunTot, Format([Recdate],"mmm") AS FDate FROM TblPayments GROUP BY DatePart("yyyy",[Recdate]), DatePart("m",[Recdate]), Format([Recdate],"mmm") ORDER BY DatePart("yyyy",[Recdate]), DatePart("m",[Recdate]), Format([Recdate],"mmm");
View Replies !
Query By Month
I am trying to set up a query where the user inputs the month they want in "MMM" format (i.e. Jan or Dec). Additionally is there a way to run a query where the user is promted to select a value from a drop down menu? Thank you for your help in advance
View Replies !
Query By Month
Hi everyone, I am trying to design a query to pull all the records which have a birthday in a specific month (ex., all birthdays that fall in May). The table is imported from Excel. Currently, the format of the field is MM/DD/YYYY. I'm not sure how to either format the birthday field so that I can run a query on it or how to design the query parameters to pull a specific month. Within the query, I need to pull all birth years and days in the month. I'm a complete newbie to Access, so any help is appreciated! Thank you in advance. Jess
View Replies !
Matching Current Month With Month In A Table
I have a table full of dates of meetings through out the year... Example tMeetingDates 16th August 2005 18th September 2005 19th October 2005 23rd November ----- i also have a report that i print out each month that has the date of the meeting on it... i currently edit the date manually. I was wondering if there was a way to automate this facility, so that the report looked to the table of dates and looked for the current Months Date that is stored i the table. i then want this date to be displayed in the Report. So in this instance if i am running a report for tomorrows meeting being the 19th October it would display that date in the report....regardless of when i run the report... Obviously if i run the report on the first of November because the month has changed it would then display the date of the November Meeting... we only ever have one meeting a month!!!! Please help Andy
View Replies !
Sorting Query By Date & Employee Name
I created a query which at first was simply to run a query which asks you for a drivers name, however we have decided that now we want to sort by the employee name as well as by a specified date range. I originaly had it set up to select the driver name with this in the criteria field in the Driver Name column: [Enter Driver Name] Then I tried to enter the following in to the criteria field in the date column: Between [Enter Start Date: (Format MM-DD-YY)] And [Enter End Date: (Format MM-DD-YY] However when I run the query it asks me for the date about 4 times, and then it goes to a blank report. I am sure I am not doing this properly somehow, anyone care to help out?
View Replies !
Query Search By Month
I'm using a query to look up report criteria by type, response etc using a query to search value in a field ex [Reply]=[Forms]![Form1]![Cmbreply] Or [Forms]![Form1]![Cmbreply] Is Null I'm trying to work a month look up the problem is the date is set July 25,2005 and my field is searching for the month July not the specific date. I'm stuck on how to look for the month only and ignore the day and year - any ideas Thank you
View Replies !
Query Date Only For Month
Hi. I want to make a query in a field date (dd/mm/yyyy) but I only want that it appears the month that will be asked for. I have this code: WHERE (((customers.creationDate) Like "*" & [Which Month] & "*")); Thanks
View Replies !
Month Columns In Query
Hi folks. I've been looking for an easy way to have 12 columns in my query which are each of the 12 months and are all using the same date field "dateSent". So i'd want to just use the month part. within the actual columns there will be a disbursal field which will tell a user how much money has been sent (if any) on that month. then If done correclty, it could be analysed in Excel. I've attached an example of what is required of me. I'm expected to have the same format but i'm unsure how I'm going to go about this. I've attached an example. Maybe someone might know a good way to do this and perhaps point me in the right direction I appreciate all help Thanks.
View Replies !
Sort Query By Month
I have made a query where the user have to enter from date and to date, and the result will be between these dates. If I write, lets say, from 01.01.2008 to 29.02.2008 It brings the results for all entrys between these dates, But I wonder if it is possible to make two results for that one, one for january and one for february. (All in one query, just sorted after month) Or maybe in the report perhaps. But I have no idea if this is possible, or how to do this. I know how I can sort it after date with the same query, but I want the results per month. Would be very nice if I can get it listed in a report, so that I can print out one page with results for january, february, march etc.
View Replies !
Sorting Of Query In Subform Doesn't Happen
Hi, I have a query for a subform which is displayed in datasheet mode (see attachment). I've created a form based on a query and used it as a subform. The "casenumbers" per clients are displayed from 1 and upwards, I would like to have them sorted Descending. So in the query I sorted them that way. When I run the query they are displayed in descending order. When I open the subform based on that query however it is not. I can sort descending anyway by clicking the column on which I want to sort and do it that way, but that becomes bothersome and it doesn't need to be that way. Record source is ok: SELECT KlantNAW.ClientNumber, CaseInfoTable.Casenumber, CaseInfoTable.DateInitialCall, CaseInfoTable.DateCaseCreation, CaseInfoTable.CaseAccepted, CaseInfoTable.[1stAppointmentDate], CaseInfoTable.DateCaseClosed, CaseInfoTable.About1 FROM KlantNAW INNER JOIN CaseInfoTable ON KlantNAW.ClientNumber=CaseInfoTable.ClientNumber; Order by: Casenumber DESC I thought, well, lets create a new form based on the query to see if that changes anything, maybe I've changed something I shouldn't have. But nope, same result. How can make the form sort descending in datasheet mode?
View Replies !
Cross Tab Query For 3 Month Per Report
I am trying to create a cross tab query which will output the data for only three months starting from the recent month. I would want these months to be heading. However, I don't want to create reports over and over again. I want something, that will resolve the issue through parameters kinda thing. I don't know, if this can be done or not. Right now I have the cross tab query for all the months, but I have to manually choose the months to fit in the page. I hope I am making sense here. I didn't know where to post this, in query or in report. Therefore, I am posting it here. Thanx in adv.
View Replies !
|