Counting Text Selections

Oct 3, 2006

I have a table with four columns, each textural - boiler type, insulation type, build type, survey type. Of each coumn there are only a handful of options to select e.g five types of boiiler etc, 6 types of insulation etc. I'm trying to build a query whereby these data are summarised thus: Numbers of each boiler type, numbers of each insulation type etc. I've been messin around with 'counts' and 'sums' but my ultra-novice skills are lame here. Help!

View Replies


ADVERTISEMENT

Queries :: Populate Text Box Based On 2 List Box Selections

Feb 10, 2014

I have 2 tables.

tblOrderType

1 - Maintenance Order
2 - Breakdown Order
3 - Greasing Order

On my form I have two list boxes: An Order Type List box, and an Area Listbox.What query criteria or VBA code would I use so that I could populate a text box with the relevant order number based on the selections of the list boxes. i.e. MaintenanceOrder & Area Z would display MaintenanceOrderNoZ.

View 2 Replies View Related

Counting Characters In Text Box

Dec 5, 2006

Wise one, I have looked for this throughout the forum but could not fiend an answer. Could you help? I have found a little script to display the number of characters entered into a text box so at to warn the user if they are getting close to the maximum number of characters allowed.
See http://www.databasedev.co.uk/counting_characters.html
I cannot get it to work. The problem is that I can only enter 1 character. It counts it but then highlights the character I just typed. I then have to click next to it to input the next character. Any Ideas?
Cheers,
Rene

View 5 Replies View Related

Counting Occurances Of Text

Dec 21, 2004

Dear all:

I have created a form with a bound combo box with 3 selections: OFFICIAL COPY, STUDENT COPY and ADVISEMENT COPY.

From there I want to be able to keep a running total for each selection in separate textboxes.

Any ideas will be grealty appreciated.

Thanking in advance,

Dion

View 2 Replies View Related

Counting Occurances Of Text

Dec 22, 2004

Dear all:

I need to count a specific expression in a text field in a table. I desire totals that says "copies" which is selected from a combo box. The total appears in a separate text box. Does anyone have any ideas on how I can count a non-number field?

Many thanks,

Dion

View 3 Replies View Related

Counting Text From A Query

Jan 5, 2005

Heelo all:

Code:

=DCount("[GRADUATE]&[ENGINEERING]","Query1")

I am using this code above to count occurances of "GRADUATE" and "ENGINEERING" from a query called "Query1"

The word graduate and engineering are in different columns.

It returns a # error........

Any ideas on how to fix?

Any help is welcome.

Dee

View 4 Replies View Related

Counting Text Fields

Mar 6, 2005

Can anyone tell me how to count (sum) text fields. My current query will search for:

1) Name

2) Ticket Number (ww*, beginning of one type of ticket)


And it works fine except that after running the query I have to manually add up how many of the ww tickets each person wrote. Is there a way to make it change the ww* tickets to a number, like 1, so that it can be added up or to add up by the persons name how many tickets they wrote. I'm using Access 2000.
Thanks

View 1 Replies View Related

Counting In A Text Field

Mar 15, 2007

I am working on a report that has a text field with "YES" or "NO" in it. This is not a yes/no field. Is there a way to count the number of "YES"'s and "NO"'s? There will also be some records that will not have anything listed. See example below.

Failed Patients

Item 1 - YES
Item 2 - NO
ITEM 3 - NO
ITEM 4 -
ITEM 5 - YES
ITEM 6 -

Total Failed Patients - 4

View 2 Replies View Related

HELP! Counting Text Boxes

Mar 20, 2007

I've asked this in a previous post but only got confused. Please forgive me, I'm a newbie at this. I have a table that I need to count a text field.

Table Name: ACE/ARB Table
Field Name: MR# (houses a 8 digit patient number)
Field Name: Failed Patient (houses a "TEXT" field with possible entries of "YES" "NO" or left blank.

Each MR# may have may different entries such as:

MR# 12345678 Failed Patient: YES
MR# 12345678 Failed Patient: NO
MR# 12345678 Failed Patient: NO
MR# 12345678 Failed Patient: (blank)
MR# 87654321 Failed Patient: NO
MR# 87654321 Failed Patient: YES

I need my report to count distinct MR#'s:

From the example above, I would need my report to show/count "2" medical records.

Any help on this would be GREATLY appreciated, I'm going crazy here. Also, if any suggestion has to do with SQL do I type what you would send me directly into the SQL statement from a query?

View 7 Replies View Related

Problem With Counting Text Fields

May 18, 2005

I'm trying to build a query that will count items in a text field.

How do I do this. I know the statement should read something like this - SELECT COUNT([fieldname]) FROM [tablename] WHERE [fieldname]=yes;

Is this statement correct and where do I place it? Does it go in that specific column. Any help would be greatly appreciated.

Thank you in advance for your assistance.

View 6 Replies View Related

Counting Text Box In A Form (by Date Ie Monthly) Help

Aug 3, 2007

Hello there !
I had a few problems yesterday with Dcount in a text box in a form but with your help I cracked it
Below is the function I used
=DCount("[PFP Number]","MAIN Table Do not delete","[PFP Number] = '" & [PFP Number] & "'")

The form is based on a table called Invoice PFPs
The Table contains a list of PFP Numbers (bit like part numbers) there are no duplicates in this table
I also have a "Main Table do not delete" with 26000 claims in it each of which has a PFP Number.
The form has a text box in that matchs the PFP Number in the form with the same PFP Number in the MAIN Table and counts them. his works fine with the above function

What I now need is it to count if the PFP Number matchs only if the date specifyed in the function matchs the claim process date (e.g 01-Dec-06 or 01-Jan-07 etc..) in the Main Table
Hope this makes sense ?

View 8 Replies View Related

Reports :: Counting Items And Putting Them In Text Boxes?

Jun 6, 2013

I've got a table with 23 columns. Column 1 is the ID row which has a unique client ID in it. Then we've got a column called 1st_Reason and one that goes with it called 1st_Transfer_Date. This pair repeats for 2 through 10. Each of the Reason columns can have a set value, for example "First Processor".

What I need to do is create a date with months on the Y axis and the 5 different reasons on the X axis. I need to count the number of "First Processor" across all 10 Reason columns for each month. I would need to repeat that for each other reason type, but if I can get one to work I can simply change the reason type.

Here's what I'm using to count May's total:

Code:
=Sum(IIf([Current_Reason]="First Processor" And [Current_Processor_Transfer] Between #4/30/2013#
And #6/1/2013#,1,IIf([1st_Reason]="First Processor" And [1st_Transfer_Date] Between #4/30/2013#
And #6/1/2013#,1,0)))+(IIf([2nd_Reason]="First Processor" And [2nd_Transfer_Date] Between #4/30/2013#
And #6/1/2013#,1,IIf([3rd_Reason]="First Processor" And [3rd_Transfer_Date] Between #4/30/2013#

[Code] .....

I get wildly inconsistent results. On one of the types, it's only counting where it's the 1st_Reason. Some of the others return the same value regardless of which month I have selected.

View 2 Replies View Related

Queries :: Counting Text Values Based On Their Status

Jan 25, 2015

I have a question regarding counting of text values base on their status and using that result to a calculation.

Say, I have a table of Demand of Positions, wherein, I have a specific Job Title for a certain Department that have number of workers needed (demand quantity) and a table of candidates for that job title and their status, say, Arrived, Visa Processing, Visa Applied, Visa Issued, and With Ticket.

What I would want is to make a summary out of the two tables, where the query will count how many candidates are there in that specific job title and have a field of status say, field of Count of Arrived, Count of Visa Processing and etc., and a field where I can add all of the count of candidates per status and deduct the result to the demand quantity where that field would be named Balance.

The problem is that the status varies on every candidate on that specific job title because the status field is used to track the progress of each candidate and this scenario will make the query blank because there would be no such record due to their status.

I tried making a summary following my requirement and you will see that in the attached file together with the SQL code of that query that the balance field value is blank.

View 2 Replies View Related

Counting Of Cases And Counting No Records

Jan 26, 2007

I have a report due the first of each week in which I need the cases open and cases closed for the previous week, the week two weeks prior and the 2007 and 2006 year to date on two different types of cases. I have a case management table with a field for Type of Case, date assigned and date closed that I uses in my queries. Presently I have two query, one that generates only Type 1 cases from the Case Management Table and another for Type 2. I then use the Type 1 Query in another query that limits the results for Type 1 cases to those opened last week, one for those open two weeks ago, one for 2006 YTD and one for 2007 YTD. In these 4 queries I have one field [Type of Cases] and I have the query count. I then do this for Type 2 cases and then go through the whole process to do Closed Cases. All my queries have criteria to automatically filter the dates to the time periods mentioned above. I then have one report query that I put all the number in for my report. This query has 16 fields with the numbers for each period, last week open and closed, 2 weeks open and closed, etc. I then generated a report that takes these numbers from my report query and puts it in a report format automatically. As you can imagine this takes some time to go through each query to generate these numbers, so I was wondering how I may do this differently. Also, I have experienced a problem when a field produces no records I get a blank sceen with nothing under the Count of column and get the same thing for my report. How can I fix this.

View 1 Replies View Related

Combo Box Only Allows SOME Selections

Jul 12, 2005

I have a combo box in a form. The box is linked to a table called Therapy with 3 fields: TherapyID, Therapy_Type and Therapy_Cost.

The table has been populated with 5 records:
1 Physical Therapy $125
2 Occupational Therapy $125
3 Acupuncture $90
4 Swedish Massage $65
5 Raindrop Treatment $65

I have a field on the form that pops up the cost when one of these is selected in the combo box. This seems to be working but for some reason, and it's blowing my mind, the combo box refuses to let me select Occupational Therapy or Raindrop Treatment.

I have other pick lists of other things working perfectly well, allowing all selections and popping the costs into their little text fields quite happily.

Can anyone give me a hint as to why THIS one isn't working right?

View 5 Replies View Related

Help With Form Selections

Aug 2, 2006

I've set up a form where i choose a country in one drop down box and this choice selects the exchange rate i get in another drop down menu. The exchange rates are controlled by a linked spreadsheet which automatically updates my database with the latest information. However, on my spreadsheet every country which uses the euro is grouped into one name 'euroland'. In my country drop down box though, are the individual names, france, germany etc. I cannot alter the spreadsheet as it is used by many people in the organisation. What i need to do then, it get my database to recognise all the European countries as 'Euroland', while still keeping the discreet names in my drop down menu.

Any help appreciated

If anyone needs me to clarify anything just ask

View 2 Replies View Related

Multiple Selections In Tables

Aug 6, 2005

I hope I can form this question so it makes sense. I’ve been trying to figure out a way to do this, if it can be done at all.

Ok, imagine I’m making a database of widgets. In this database I’m creating a table of widget name, cost, weight, and color. This part is pretty simple.
Now, my widgets can come in many different colors. To accommodate this, I create a separate table for colors, let’s say red, green, blue, yellow and purple. I create a color item in the first widget table, and use the look up wizard to point it to the color table. This way on my forms I can select the color widget I want and have it all standardized.

This is where my problem comes in. My widgets can be multiple colors. How can I create a field in my widget table, to somehow reference that I can have a red and blue widget? So, when I query all my red widgets, I get the red ones and the ones with red in them?

Now, I could make an item in my widget table for each color and make it a yes/no field. But, my real problem is exponentially bigger than this so that isn’t what I want to do.

Thanks,

Joiry

View 5 Replies View Related

Combo Box Multi Selections?

Jan 27, 2005

I would like to select multiple records from my combo box not at the same time but each selection to be added to another text field in my form.

PROBLEM: When I select a record that 1st selection is populated in the other text field however when I want to select another choice to be added with the 1st choice the selection overwrites the 1st choice instead of adding to it.

View 4 Replies View Related

Multiple Selections In Combo Box

Feb 14, 2006

How do I allow the user to select more than one answer in a combo box? It is a drop down menu with several choices. I'd like the user to be able to select more than one if desired and all choices would display when queried. Thank you much. :)

View 4 Replies View Related

Multiple Combo + Last 5 Selections

Oct 1, 2006

Howdy all, Ive got combo boxes, in a cascading style working well... but what id like to also have is a another dropdown list that shows the last 5 selected options (because often the data will be entered in batches and it should just save time)there is combo1 combo2 and combo3 If Sport is selected in combo1 then it displays combo2 with all the sports in it, so if golf is selected then the golf options come up in combo3 for example tiger, So id like to store Sport > Golf > Tiger Ive already got the value for Tiger being selected, so I can assign that easily enoughWhat id like to be able to do is store the name and its value in a combo box maybe showing the last 5 selections. Im just not sure what the best way to go about this would be, Should I make a table with say 5 rows? or is there a better way to go about it?Any thoughts or advice would be awesome,Cheers Ezy

View 3 Replies View Related

Order Selections Problems.

Nov 6, 2006

Hey there! ive nearly completed my databse now, but i have one small niggling problem!

As you can (hopefully) see in error.jpg i have an order form which has a subform in it. Now the Order form itself with the addresses and all works fine, however in the subform if i try to enter a 2nd product things go awry and i get that error message. If there's only 1 product selected everything works fine and all the currency related expressions work fine. Im kinda stumped as to what's wrong. I checked the VB code and that all seems fine (although im not too great when it comes to vb) the subform options all seem right and im thinking the relationships are fine too... its kinda annoying really seeing as i gotta show this to my boss tomorrow and well lets say things would go smoother if it actually worked!!

In that subform im trying to get product information from a table called InputMedia and get it to record my selections in iOrderDetails. Im using a query to tie them together and im guessing that is the problem.

Please help me!!

Thanks, Marc.

View 4 Replies View Related

Multiple Selections On A Form

Mar 23, 2005

I have a continuous form which selects records to view based on the stock number and the dates, beginning and end, entered by the user. This is based on query that gets data from several related tables. This is what is in the Row Source property of the combo box has in it: SELECT [qrywhobotit].[PROD_CODE] FROM qrywhobotit; don't know if that makes any difference to my problems.

The stock number is selected from an unbound combo box. The dates are selected from 2 unbound text box controls, one for start date & one for end date. I used the after-update event of the combo box and it filters the stock number. I also used the after-update event in the end date text control to filter the dates (from and to).

Question: How do I write the events so it selects the stock number for just the date range entered. I can get the stock number to get the correct records, but the dates are not selected, it shows all records for that stock number not just those matching the date range entered. If I comment out the stock number code, then records selected match the date range entered, I only see the dates I entered but it shows all the stock numbers, not just the one stock number entered. I can get the stock number to work OR the dates but not both at the same time. I think I need some sort of "and" condition, but not sure where/how to put it.

Here is the code I used.

Private Sub cbofindrecwhobotit_AfterUpdate()
' Find the record(s) that matches the control.
' DoCmd.ApplyFilter , "Prod_Code = '" & DblApp(Me.cbofindrecwhobotit.Value) & "'"
' Me.FilterOn = True
End Sub

The above commands are commented out, I tried moving it all to the after update event of the end date text box control - didn't work (see following code). It works fine if I uncomment it, but then the dates don't get filtered at all.

Private Sub txtwhobotenddat_AfterUpdate()
DoCmd.ApplyFilter , "Prod_Code = '" & DblApp(Me.cbofindrecwhobotit.Value) & "'"
If txtwhobotstartdat.Value = "" Then
Me.Filter = "FULFILL_DT <= date()"
Else
Me.Filter = "FULFILL_DT between " & _
"(#" & Me.txtwhobotstartdat.Value & "#) " & _
"AND (#" & Me.txtwhobotenddat.Value & "#)"
End If
Me.FilterOn = True
End Sub

2nd Question: There are lots of records for any one stock number. When I use the combo box to select the stock number, I see the same stock number repeated again and again in the list displayed in the combo box , instead of just one of each. I tried turning both the Unique Values and Unique Records properties to YES on in the properties of the query, but that didn't fix it. How do I fix the combo box to display just a list of unique stock numbers?

Thanks to anyone who can help.

View 1 Replies View Related

Multiple Selections In A Listbox

Jul 11, 2006

I have a listbox with about 8 different choices. i want to be able to query what is selected in this list box but I need to be able to select more than one choice so that my employees don't have to create multiple forms for the same item. Is there any way to select more than one option? It would help greatly even if I have to add code in VB I will figure out how to do it, thank you.

View 2 Replies View Related

Query With Where (Multiple Selections)

Mar 5, 2014

I have a list of codes that I would like to select among 50,000 codes in MS Access Database:

I can easily find one code but I don't know how to select multiple values:

My Query is:

SELECT [Codes for District].DistrictID, Univ2012.Schoolid
FROM Univ2012 INNER JOIN [Codes for District] ON Univ2012.DistrictID = [Codes for District].DistrictID
WHERE IN [((Univ2012.Schoolid)= 415030301, 415030303, 415030306, 415030309)]
GROUP BY [Codes for District].DistrictID, Univ2012.Schoolid
HAVING ((([Codes for District].DistrictID)=15));

When I run this query it gave me Syntax Error in Where clause...

View 3 Replies View Related

Multiple Selections From Listbox To Table

Apr 12, 2006

This must be pretty common but I cann't figure it out.

There is a listbox that multiple selections are allowed. This listbox is bounded with a table field. All selections must be stored. I don't mind if each selection is stored as a different record.

Any ideas?

View 13 Replies View Related

Multiple Selections For Criteria Prompt

Feb 7, 2006

I keep thinking this should be pretty simple, but more than 2 hours searching through posts has revealed no answers, probably because the answer is too simple.

OK, I have an append query. I've created a prompt to enter the number of the record the user wishes to append, as it is usually one single record. However, I've recently run into a problem that now there is the possibility of needing to specify more than one record at the same time to be appended.

How do I change the criteria syntax to allow the user to enter two, three, or a dozen (if need be) different record numbers? They are not listed sequentially, so I can't use a "between" statement. I've tried separating the numbers by commas, quotes, and so forth, but can't get it to recognise the records.

Can anyone help please? Thanks in advance. :o

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved