Yes, the query worked fine without the AVG, once I added it, I got the error.
I am going to try the Report Footer for the grand total, One other issue I am trying to work through, is, I made a form based query and I am not sure how to have the results go to a report.
User Profile
Collapse
-
I will try the Footer Option, it sounds like it might work.
What I was looking for in the report, I created a Form Based Query, and when a user types in lets say:
Department: Education
Health Care Worker: MD
Shift: First
The query will currently pull up the filtered results with a field called Percentage. There may be 200 records in that query.
Rather than have all 200 records on the Report, I was hoping...Leave a comment:
-
Subquery problem
Hi All, I am have some trouble with a parameter query that I am hoping someone can guide me.
I have a Parameter query with a few fields that people can filter with, Such as "Department ", Date Range, Shift... This query is meant to sum the number of "Yes" answers as a percentage from a Y/N field. The query works fine and gives me all the filtered records depending on the choices in the query.
Here is my problem. I... -
Worked Perfectly
You know, sometimes things are so simple, that you tend to overthink it.
Thanks for your help, it worked great....Leave a comment:
-
Difference Between Two Number Fields
Hi All,
I need to create a query that will look at two fields containing numbers, and give me the difference between the two. I have found alot of info for comparing two dates, but not simple numbers.
The two fields are "Minutes Booked" and "Actual Minutes Used"
Just an insight, this is for a surgeon booking an operating room, and how long they were actually in there, both in minutes as a whole number. ... -
Thank you everyone for the information. Now I see what I am doing wrong. Thank you for helping me with this. Hopefully I will learn more about access with your help.
NickLeave a comment:
-
Here is a snapshot of my code for the form.
Let me know if this helps.
Private Sub Combo8_AfterUpd ate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Cl one
rs.FindFirst "[HCPC] = " & Str(Nz(Me![Combo8], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
NickLeave a comment:
-
It does work when the enduser types in the CPT code, it does bring them to the first record, then they click on the drop down arrow on the combo box to see if there are any modifiers, if there are, they should be able to click onthe next line down, and that fee should pop into the fee text box. I think the reason it is not allowing me to pick the codes with modifiers, is because the combo box is bound to the HCPC field. I applogize, because I am...Leave a comment:
-
Comb Box not allowing record sellection
Hi All, I am hoping someone can please help me on this issue that I am stuck on.
I am creating a Fee generating program for our Hospital's medical offices. You are supposed to type in a number, and it will show you the Medicare Fee associated with that proceedure code (HCPC). There are 4 Fields:
HCPC, Modifier, Description, and Fee.
I created a form, in which I placed a combo box using a basic query, showing the first... -
Thanks Everyone, I just figured it out. I didn't need the Month field after all, the Graph allowed me to use the Date field, and display it as Month.
Oh how I love programming.
Thanks Again,
NickLeave a comment:
-
Graph in Report always displaying Current Year
Hello Everyone, I am almost completed with this database, the only thing left is to graph the results of a query. I built a parameter query that gives me totals for a date range that I enter. This works great. I created a column called "Month", and I am entering the month and year corresponding to the "Date" field. ie. (03/15/06 for the date) (Mar-06) for Month. If I do the Query to show me 1/1/2006 to 12/31/2006, I get the results... -
How can I join 2 queries together
Hi everyone, I have two seperate queries that work great individually, but I need to join them together to get a combined output. Can someone look at these and help me with the code? Here are the 2 queries below.
Thank you in advance,
Nick
SELECT
Sum([Environmental Rounds].[Fire Extinguishers]) AS [SumOfFire Extinguishers],
Sum([Environmental Rounds].[Fire Exits]) AS [SumOfFire Exits],
Sum([Environmental... -
Hi Rabbit, what I am looking to do is enter a date into my form, and have it not only put itself into my table as a date, but convert itself to the MMM-YY format, and be inserted into a seconf field called "Month" on the same table. I can always add this field in the form, but I didn't want to have the user having to type in the date, and then the Month/Yr.
The reason I am trying to do this is so I can create a query to show me monthly...Leave a comment:
-
One form input into 2 fields of same table
Hello everyone, is it possible to have one form field entry populate two different field in the same form.
i.e. Date field of form inputting 5/4/07 and this going to Date field on table with 00/00/00 mask, and simultaneously going into Month field with MMM-YY mask.
Thanks,
Nick -
How about this senario, I create a field called MonthYear in my table and mask it to only give me >L<LL\-00;;_ from a Medium Date.
Is it possible to have a single Form field input into two different fields on the same table? One that would be the normal Date of 3/15/07 and the other to conver that input to Mar-07.
NickLeave a comment:
-
I am sorry Mary, but I get the same error.
When I look under the "Help" for MonthDate, I notice it has this Syntax:
MonthName ( month [, abbreviate] )
where the month is a number from 1-12, since I am using the [Date] field, which is in the form of 3/3/07, will this function still work?
NickLeave a comment:
-
Hi Mary, That worked great, and it only asked me for the date once.
I ran the 2nd query, modifying it to say "Date" instead of MyDate, and if I don't type in any dates it runs fine, but with no returned data, which I expected.
But if I place in a range of dates, it returns with the error:
"The expression is typed incorrectly, or it is too complex to be evaluated..."
I have gotten this...Leave a comment:
-
Sorry Mary, Same aggregate function error, this time with the word "Date" instead of "My Date"
I appreciate you taking the time with me.
NickLeave a comment:
-
Same Error.
To troubleshoot, I took out all references to Mydate, and just ran the Summing query, and it worked great.
Next I recopied what you sent me, and I took out all the lines except for the first two...
SELECT (ER.Date) As MyDate, Sum(ER.[Bathroom handrails]) + Sum(ER.[Emergency Pull Stations]) AS Total
FROM [Environmental Rounds] AS ER
...and it came up with the error. So it is erroring on (ER.Date)...Leave a comment:
-
Hi Mary, this definately looks a lot simpler, and I am sure we can get this to work. When I run this, I am getting an error:
"You tried to execute a query that does not include the sprcified expression 'MyDate' as part of an aggregate function."
Any ideas?
NickLeave a comment:
No activity results to display
Show More
Leave a comment: