Checkbox Count Comming Up With Neg Value
Sep 24, 2007
Hello all,
I have a main Query (qryMain) which is the basis for other queries. It gets its criteria from a form with a calendar control and it works a treat. The main table in my db has a check box QuoteAccepted (yes/no) which is on the Query. The main purpose of the db is that it is a quote register. I have another query based on the main query and when i do a count of the yes no fields it comes up a negative number. eg :
total quotes=8
quotes accepted=-2
when 2 quotes have been accepted
I then want to convert this to a percentage of quotes accepted. I have searched this forum and have tried the following criteria
yes
true
-1
I have no problem with the formula (it will be on a report) i just need it to show a positive and not a negative thanks in advance.:(
View Replies
ADVERTISEMENT
Feb 8, 2006
Hi allive just been asked this by a co worker on a remote sitethey have a client name they want to input to a table in Access 2000in a surname field which is just a txt fieldthe name to be input is 'comming'when they tab to the next field access changes it to 'coming'i tried it this end in a new database and it does tha same thing ..and in Acc 97any thoughts ...or a fix?Thanks
View 3 Replies
View Related
Apr 13, 2006
I have a table tblBookings.
In this table it has a bookingID, CustomerID and some other none relevant details.
The CustomerID comes from table tblCustomer. i.e a customerID must exist in the customer table to be allowed in the bookings table tblBookings
A customer can exist in tblCustomer without existing in the booking table.
I am trying to write a query that will list each and every customer ID in the tblCustomer and count the number of bookings that that customer has (even if it is zero).
I have a query that will count the bookings if they exist in the booking table and display the number of times that a customer appears in the bookings table.
SELECT tblBookings.CustomerID, Count(tblBookings.CustomerID) AS NoOfBookings
FROM tblBookings
GROUP BY tblBookings.CustomerID;
How do I create a query that will do this but list all customers even if they don't exist in the bookings table (but obviously occur in the customers table)
I am trying to create a similar query where all bookings per hotel are listed even if no bookings are made for that hotel. I am guessing the answer is the same as above.
The Ritz. Bookings 0
The Hilton. Bookings 3
The Carlton. Bookings 0
The Lowry. Bookings 2
For every hotel.
That kind of thing.
If you need more information please shout.
View 3 Replies
View Related
Aug 16, 2015
I have a table that has 5M+ accounting line entries. Below is an example of one accounting journal in the table.
BUSN_UNIT_IJRNL_DJRNL_ICNCY_CMONY_A
CB0014/07/20140002888269323AUD16797
CB0014/07/20140002888269323AUD-16797
CB0017/07/20140002888269323AUD16797
CB0017/07/20140002888269323AUD-16797
The journal ID above was an accounting entry, debit $16,797 and credit $-16,797. because it was entered as a reversing journal in the system, the table has captured the Journal ID with 2 dates. For my purpose i only want the one date (MIN) date, the total amount of the journal (either the debit or credit amount 16,797) and the total number of lines the journal ID has so in this instance I want the count to be 2 and not 4.
Right now this is what i get
BUSN_UNIT_I JRNL_I CNCY_C SumOfMONY_A CountOfJRNL_I MinOfJRNL_D
CB001 0002888269 AUD 0 4 4/07/2014
This is the output i would like
BUSN_UNIT_I JRNL_I CNCY_C SumofMONY_A CountofJRNL_I MinOfJRNL_D
CB0010002888269323 AUD16797 2 4/07/2014
Im thinking with the total sum because theres debits and credits is there a way to do the absolute value of the journal MONY_A then divide by 2?
current SQL
SELECT [One Year Data Lines].JRNL_I, [One Year Data Lines].CNCY_C, Count([One Year Data Lines].JRNL_I) AS CountOfJRNL_I, Min([One Year Data Lines].JRNL_D) AS MinOfJRNL_D, [One Year Data Lines].BUSN_UNIT_I, Sum([One Year Data Lines].MONY_A) AS SumOfMONY_A
FROM [One Year Data Lines]
GROUP BY [One Year Data Lines].JRNL_I, [One Year Data Lines].CNCY_C, [One Year Data Lines].BUSN_UNIT_I
HAVING ((([One Year Data Lines].JRNL_I)="0002888269") AND (([One Year Data Lines].CNCY_C)="aud"));
View 9 Replies
View Related
Sep 20, 2005
Hi,
Just spent the past hour in here trying to nut this one out, but not sure I've found something quite the same...though I know the answer will be painfully simple.
I have a customer table and a product table, and a query that groups customer first and last names along with a count of products per customer e.g. 1,1,3,2,3,4,2,1 indicates customer A buys qty 1 of product z, customer B buys qty 1 of product x, cust C buys qty 3 of product y and so on.
All I need to do now is do something to also output the total number of products. ie as per example above, 1+1+3+2+3+4+2+1 to get 17.
Can I do a count of the count or do I do some sort of sum of the count results?
I've tried everything I'm capable of as a newbie, and I'm not having any progress.
Any help appreciated.
View 2 Replies
View Related
Feb 28, 2005
:rolleyes: :rolleyes:
Hi to all
I got 2 checkbox.
checkbox A
checkbox B
When I check on checkbox A, checkBox B is also checked.
can this be done?
Please help and thanks a lot.
View 1 Replies
View Related
Mar 31, 2006
Hello all,
How do I write a QBF query such that when a check box on the form is clicked, the name of query runs based on the name of that checkbox.
I have a form called, QBF_Form, which has a series of checkboxes. Each checkbox has a name. I have a table, "Type", and I would like to run a query based on the information on the form, ie. when I click a check box, the query gets the name of the check box and runs the information based on that.I know the basic qbf is:
[Type] Like [Forms]![QBF_Form]![Type] & "*" Or [Forms]![QBF_Form]![Type] Is Null
But I don't know how this would work if I have a check box for values in field "Type" in my table.
Thanks for your help!
View 4 Replies
View Related
May 9, 2006
Iwant to suppress the message "The macro or function set to the Beforeupdate or ValidationRule property for this field is preventing Microsoft Access from saving the data in the field".
The message is correct-Iwant to prevent updating the checkbox if certain conditions aren't met.
Any ideas?
Thanks
View 4 Replies
View Related
Aug 29, 2006
Hi,
I do NOT want to create one field for check mark in the table. I just want to make temporary checkbox to select the record in the continuous form.
But, When I put a check mark on one record, the check marks are shown on all records in the continuous form.
How can I fix it?
View 1 Replies
View Related
Oct 27, 2006
I have a form that has a business address, business name and business number. I have a checkbox in the form, if they click the checkbox i'd like to have it copy the fields above to anther a field. What do i have to do in order for that to work? I've never did anything like this...Can someone please help
View 3 Replies
View Related
Jul 12, 2005
I have successfully created a mailmerge in word 2000 using an access table for data.
There is an access field which is a Yes/No Checkbox and it does not display the way i need it to in the merged document. Instead of seeing a ticked or unticked box i see o 0r -1. Can anyone please help me?!
I am no great computer wizard and would appreciate fool proof help!!! :(
Many thanks in hopeful anticipation......
Lesley
View 2 Replies
View Related
Nov 28, 2005
I installed Microsoft Office 2003 on my computer. It asks me to register the product otherwise not all functions will work properly. I was curious so I didn't register it and started an Ms Access Application. Interestingly, when I clicked on a checkbox in a form , nothing happened.
After registering the product and going back in to the mdb the checkbox worked just fine.
Any one ever seen this before or know what causes that?
Thanks
View 1 Replies
View Related
Jan 30, 2006
I want to make sure that only one check box can be checked and also to make sure that on is selected, i.e. to display a warning that one is not check if someone is going to save the record. Any ideas guys?
Thanks
View 1 Replies
View Related
May 31, 2007
hey all, i have a supplier table (Supplier), that has a yes/no check box column field depending if they are active or not. About 200 suppliers in all, many of which not active.
I want to be able to automatically set the active field to True within the supplier table depending on the condition that records exist in my delivery schedule table (Schedule)
SO for instance if a supplier name "Power" exist in my delivery schedule, then i want supplier "Power" in the supplier table to be checked i.e True. I guess some form of dlookup is needed here, but not im not sure where to start. Any help appreciated!
View 2 Replies
View Related
Feb 3, 2008
Hi Guys,
I am having an issue with my programing an access database for my business. I use access a lot and i am profecient in the area.
I want to be able to select services from a sub from using check boxes. The selected check boxes are then assign to the customer using a unique id that is generated from customer_table.
I have created a the sub form and the check boxes and have attempted to do to the above by building queries. For information on the queries i used please let me know.
Anyway, I am now looking for a solution in the sub form that i click on a button it then assigns the unique ID to the services so that i am able to see customers details the services that have been selected and the total sum.
Any help would be appreciated on this as i been working solind on this now for more than 72 hours and i am drawing blanks.
Thanks in advance
Powster
View 6 Replies
View Related
Sep 6, 2005
I have created a query which search all fields in my database from one text box. Is it possible to search only records which have checkboxes ticked by ticking a checkbox on the search form/in the query.
Thanks in advance
View 2 Replies
View Related
Mar 20, 2007
I have a standard Select query with various fields, three of which are:
- Quantity Ordered (number)
- Quantity Delivered (number)
- Short Delivery (checkbox)
Basically I want the check box to be checked if the qty ordered value is greater than the qty delivered.
I have this code in the criteria of the Short Delivery Field and it does not work
IIf([1A-Quantity Ordered]>[1B-Quantity Received],1,0)
Can anyone give me any pointers, also should I be using an Append or Update query?
View 2 Replies
View Related
Mar 23, 2007
Hi, Im trying to build query that filters my recors by checkbox value in form.
I have field id_reason with numeric values, my idea is that when checkbox1 = 1, id_reason is filtred by value 11, when checkbox1 = 0, id_reason <> 11.
i tryed this formula as criteria in design grid:
IIf([forms]![form1]![check1]=1;[id_reason]=11;[id_reason]<>11)
but IIF is not operator, so it doesnt work...
Can anyone help with this one? :cool:
tnx
View 8 Replies
View Related
Apr 2, 2008
Greetings to everyone,
I've been looking through the forum for this, but I've only found how to add/count checkboxes in queries, and how to make a query based on checkboxes...what I need is to add a checkbox to every result on a query, I need this in order to add the ticked items to a record table, this is, the ticked items are accomplished tasks and therefore need to be registered (in the table) and the unticked tasks weren't accomplished and therefore shouldn't be added to the registry (table). Can anyone tell me just how to add the checkbox to the query?
I would thank any help on this.
View 14 Replies
View Related
Feb 15, 2005
I think this should be a simple question, but I just cannot figure it out. I have a form which contains a check box. I want to set the value of a field in a table to 0 if the box is unchecked and 1 if the box is checked.
How can I do this
:confused:
Thanks
R Tomalin
View 12 Replies
View Related
Jun 22, 2005
I have a form with a checkbox field. When the checkbox = true I want a popup box that asks for additional information (data to go to the same underlying table or as a sub-table).
I am able to get the popup box to activate via code in the After Update
If Me.SP = True Then
DoCmd.OpenForm "frmSponsorshipDetails", acnormal, "", "", , acNormalWindow
End If
End Sub
Two problems seem to occur with this.
1. Records are not synchronised ie subform always defaults to record 1
2. Once I've closed the sub-form and try to create a new record I get an
error msg stating that someone else has made changes to record.
I have identical ID fields in both forms - how do I get the forms to link and work together?
Or must I use a sub-form? If so is there any way to make the sub-form a pop-up box?
As ever, am slow to grasp the complexities of coding *sigh*
Lukim
Dev
View 6 Replies
View Related
Aug 22, 2005
Be gentle with me, for I am new, I can't write code, my database is all done by macros etc.
I have created a subform which incudes a yes/no checkbox. I want this to default to 'checked'. The subform is used to record an audit of the position of valves. It is based on a query combining two tables, one containing valve details and the other the results of the audit. I have set the default value for this field as '-1' in the audit results table, and also in the subform checkbox field.
However whenever the query is run, the subform contains a list of valves with thier checkboxes stubbornly unchecked. How can I make the query return a list of valves with the checkbox ticked?
Thanks
Richard
View 4 Replies
View Related
Aug 23, 2005
Hi everyone, I have a bound checkbox on a continuous form and I want the user to be able to select only one checkbox at a time. At the moment they can select as many as they like which is not what I want. Anyone know how to do this?
Thanks for any help
View 9 Replies
View Related
Oct 7, 2005
Hi,
Updating a single Yes/No field to show if the record should be visible.
Have a continuous form with a bound checkbox to supply the new value.
OnClick event for the displayed data innitiates an immediate table update.
Values were not updating.
The problem:
However stepping through the onclick procedure in debug window shows that irrispective of the state of the checkbox checked/unchecked the value is 0.
After trace the the state is always as it should be.
Any thoughts chaps? :)
View 5 Replies
View Related
Oct 29, 2005
Hello,
I ve got a big problem:) What i am trying to do is CRM , this crm has some informations about the companys. ----->
I have form where are all the informations about companys entered by users of CRM. One of the informations is size of the company. What i did is that i have put three check boxes ( small , middle, large ) and bound them with the main table company ( companyID, companysmall ( YES/NO ), companymiddle(YES/NO), companylarge ( YES/NO ), companyfax, ... ).
When you mark the check box ther is an yes in table for a size of company and no for the other two options.
What i would like to do is to create another form where i could filter companys by ther size. But the tricky part is, that i would like to filter with check box so that i can filtr for example small and large companys at same time.
How can i do this - can you help me - mabe some examples.
Thank you,
Luka
View 1 Replies
View Related
Dec 13, 2005
Hi All,
I have a continious form with checkboxes. How can I write code that users can only select one! checkbox?
regards, martijn
View 2 Replies
View Related