Calculate Data If Check Box Is Checked

Oct 19, 2004

I have a user input form to enter traffic counts. There is a subform within that form that shows the total. I want to have a check box which, if checked, will multiply the data in the box by two. I have tried building expressions, macros...nothing worked. Dont know what I'm doing wrong. Any idea?

View Replies


ADVERTISEMENT

Check Box Is Checked Depending On A Data Field?

Nov 9, 2005

I have a data field (status) that is either Graduated, Terminated, or Current. I also have a report that has a check box representing each (such as a check box for graduated and another for Terminated etc).

I am trying to get the report to read the status and check the appropriate box in the report.

I have tried this in the control source of the checkbox
=IIf([status]="terminated";True;False)
but this does not work

I have also tried this on the OnOpen

If [status] = "terminated" then
termcheck = true
else
termcheck = false
end if
end sub

But this does not work either - what am I doing wrong :confused:

View 2 Replies View Related

Checked Out With These Check Boxes

Oct 15, 2006

Hello Folks.
I can't seem to figure this one out in a continous form. I have checkboxes where I can check them. If I check any of them, I would like to disable another check box. All this works, but what it does is it disables/enables the check box in ALL the rows, instead of just the current row.

I have attached a sample of my setup. Any help/insight would be appreciated.

View 1 Replies View Related

Checked Out With These Check Boxes

Oct 16, 2006

Hello Folks.
I can't seem to figure this one out in a continous form. I have checkboxes where I can check them. If I check any of them, I would like to disable another check box. All this works, but what it does is it disables/enables the check box in ALL the rows, instead of just the current row.

I have attached a sample of my setup. Any help/insight would be appreciated.

View 1 Replies View Related

Forms :: Check Box Checked - Field Cannot Be Updated

Sep 27, 2013

I have created a user form that contains check boxes for various fields, and on this form, when the box is checked, I get a prompt that the field cannot be updated. I have several other forms that use these same yes/no fields, and I am not having the same problem on these forms. I checked the property sheet row source for the form and I don't see anything wrong with the select statement (that I know of).

View 1 Replies View Related

Check A Checkbox If Not Already Checked And Vice Versa

Nov 6, 2011

I am trying to create a medical records inventory. We have physical charts which each have a barcode and I have a scanner. The idea is to have employees who want to check the chart out scan their barcode (on their badge), scan the chart's barcode and leave.

I have a table called tblCharts with the fields: ID (primarykey which is also the chart number), a checkbox, Employee ID, Date, and Time checked out.

I have Employee ID linked to my tblEmployees that simply has a listing of the employee ID's and first and last names.
I don't care about keeping a record of who has had the chart in the past.

I just can't figure out how to tell the checkbox to be checked (to indicate the chart is out) when a number is added to the ID field (via scanner).

So here's how it would go:

Scan the chart's barcode which would populate into the ID field. Search to see if the record with the same number is already existing, if not create a record. IF it does exist, check to see if the checkbox is checked. If it is checked then the chart is being checked back in (so uncheck the box). If it is not checked to begin with (still in), then check it out and associate the employee's scanned barcode with it.

View 14 Replies View Related

Modules & VBA :: Using Check Box On A Form To Filter Out Results From A Table That Is Checked

May 23, 2014

I have kept the names as simple as I can for the example sake to which I can substitute my names in after.

I have a split form - form1, I have a check box on this form - checkbox1 - That I would like to use to make only the checked results from the table - table1 - show and if it is not checked to show all the results. How would I go about doing this? The table field is called field1.

View 6 Replies View Related

Deleting Records That Have Been Checked Or Adding A Record After A Checked Record

Jul 20, 2005

Hi,

I was wondering how to delete records that have been checked (through a checkbox) in a form...

Also, I want to add a record after the record that has been checked. I only want this ability to add records available if only one record is checked. Otherwise, if more than one record is checked, the "Add Record" button would be disabled.

Any help would be much appreciated.

TIA.

View 10 Replies View Related

Queries :: Calculate Totals Column Based On Check Box Selections

Mar 15, 2013

I'm trying to create a query to work out the total amount to invoice based upon some selections. Currently my query looks at the values in several fields (numberOfRollsUsed etc) by taking the value in these fields and multiplying by a fixed amount to calculate the total.

What I would like to add to the query is fixed values based upon some check box selections. So if check box A is selected, add 5 to the total, is check box B is selected, add a further 10, and so on. All fields and check boxes are held within the same table (Job).

Am I being daft or trying to do something in the worst way possible? I'm actually adding this to an existing system so I don't have so many options to completely redesign the system to calculate this in a better way.

View 2 Replies View Related

Design Table So That When A Box Is Checked Data Is Transferred To Another Table

Mar 23, 2012

I am designing a database for my organisation. I have done most of it but am stuck on this. Ideally I would like to have a check box (in a table) that when checked a load of data is carried across from that record to a record in another table.

Given that I can't and don;t want to use VB is there anyway that this can be done easily?

View 8 Replies View Related

How To Calculate A Total Of 0 When There Is No Data

Jan 8, 2014

Say I have a table with ID's of people and a column with the hours they need to work on a specific day. I want to make a query where I get the total working hours for every person in that table for a certain date. The problem is that when a specific person in the table has no hours for a certain day he doesn't show up in the query if I choose that day.., is there a way to make sure that I get everybody's names for every day even if they don't have any hours on that day, but instead of not showing it would show a "0" instead?

View 1 Replies View Related

Select Only A Certain Data To Calculate In Report

Oct 26, 2006

I have a database that contained the following fields. VacEarned,VacUsed,VacPlan (Yes,No). In my report, I grouped VacPlan field (which is yes/no field) together and sum it up by VacUsed. However, I'd like to put another formula in my report to subtract the the Sum of the VacPlan from VacEarned...I have such a hard time doing that..Is there way that I can put if statement in the report option that would do the following: If VacPlan is Yes, than Sum VacUsed and use it to subtract from VacEarned..is this possible..
I hope this make sense...

Thanks in advance..

View 1 Replies View Related

Calculate Numerical Data In A Text Field

Nov 29, 2004

is there any way I can make a field with a data type that calculates numbers in the field but also allows text to be entered into the field (e.g. N/A or No Score) The non-numerical data certainly wouldn't have to be calculated and could be filtered out when calculating averages and other numerical operations.

Thanks

View 2 Replies View Related

Queries :: Calculate Percentage On Grouped And Filtered Data

Jul 20, 2015

I'm very new to Access and I'm attempting to write an expression in a query that will calculate the % of the count of "Exchange" field (Exchange is a text field and is grouped and the count based on each unique name) where the total count is based on the filter where "Group" = 'FS' or 'S'.

The below seems to work, but there is a better way of going about this (especially if I have to add more filter criteria). I added a pic of the query I'm trying to build.

PercentofTotal: (Count([Exchange])/DCount(Count([Exchange]),"[Holdings]","[Asset Group] = 'FS' OR [Asset Group]='S'"))

View 11 Replies View Related

Tables :: Calculate Some Additional Data And Generate Quotations - Too Many Fields

Jun 2, 2015

I have a database that will take lots of data entered by an employee and calculate some additional data and generate quotations. Within each quote there is a possibility for 15 different metals (5 Precious Metals, and 10 Base Metals). There is also 5 fields that need to be filled out about each Metal (What the metal is, the market being used, weight, whether it is included in a different price, and the price). I currently have 75 fields to address each Metal and their 5 fields respectively. Is there a better way to Normalize this data, and accomplish what I need accomplished? I want at the form level the employee to tell the database whether they want to add a Precious Metal, or Base Metal, or Move on to other data entry.

Here is a Screenshot of the design view of one of my tables with too many fields : table screenshot1.PNG

View 14 Replies View Related

Queries :: Count Function Which Calculate Data With Date Criteria

Jan 20, 2014

Looking to have a count function which calculate data in sense like if records found on 1-jan-2014 the it give answer as 1, same as records for 2-jan-2014 it should return 2 and so on .. in short the criteria must look and give same number for same dates starting from 1

View 8 Replies View Related

Queries :: How To Get Only Yes Checked Box

Aug 13, 2013

I created a table (contains ID, Name, almost 20 yes/no checkboxes).

I need to create a query where i specify the ID and it returns the id, name and all the yes checkboxes.

What I got is all the check-boxes yes and no.

View 6 Replies View Related

Value >=1000 If Checkbox Checked

Aug 5, 2005

I've been scratching my head all night, can someone tell me why the attached query doesn't work?

Thanks,

Sup

View 3 Replies View Related

If Box Not Checked, Gray Out Next Field

Feb 27, 2008

I have a form that has a check box. If the box is checked then I would like the next field to be available for data entry, however, if the box is unchecked, then I wish for the next field to be grayed out and not available for data. I suspect that it is a simple bit of VBA, but I am not fluent in VBA and need help everytime, I find something new. Thanks for all your help.

Regards,
Alan

View 10 Replies View Related

Check If The Data Already Exist

Jan 26, 2005

Hi,

I put a Dlookup function to compare the new entry in a form and the code is like this:

If (Not IsNull(DLookup("[empno]", "Attnd_tbl" , "[empno]=[empnotxt]")))then
MsgBox "This Employee Already Exists"
cancel = true
Me!empnotxt.undo
end if
end sub

this works for comparing one field only, since I want to check if the employee is already entered on a certain date, how do I put two fields in this function to be looked up if for example "[empno]and[date]","Attnd_tbl","[empno]and[date]=[empnotxt]and[datetxt]"

View 4 Replies View Related

Check For No Data Entry

Nov 4, 2005

I have some fields on a form that are update once a cmbo box is updated. They are updated by dlookups. However the fields that it looks up maybe empty so nothing is entered. So the user can enter the information themselves. On exit i would like to check to see if the field on the form is empty if so to flag up a msg.

i.e.
if me.field = "" then
msgbox "You havent completed this field"
end if

However when i run this it doesnt detect that the field is blank. Is this because the field is being updated with a blank field from the dlookup. I have even tried = null.

I hope this makes sense. Thanks

View 3 Replies View Related

Using A Combo Box To Check Data

Dec 17, 2006

Hello (Again!)

I have a form that is mainly used for data entry (for call logging). Ideally it will be linked to 4 different tables, however I need to get the basics working.

My new problem is being able to look up data that is selected in a combo box to see if it is out of date. I shall clarify, as stated the form is for call loggin, when someone calls I ask for their postcode, this is in the combo box.
I want to then use the postcode selected to data from another table that lists services due, and if the service is due for that postcode within two weeks highlight the text box in red.

Any ideas?

(access newbie so please bear with me!)

Many thanks.

B.

View 2 Replies View Related

Check And Delete Data

Jul 9, 2012

I have data, in which want to keep Job Id as primary key. Now, there are some Invoices as well as Invoice reversals with the same amount against those invoices. Check those Invoices & Invoice reversal of the same amount & delete that data of that Job ID. How to do it in Access or is there any other way to do it?

View 1 Replies View Related

Show Textbox When Checkbox Checked

Feb 8, 2006

Hi

I've searched the forum for my problem and the closest i got was this and it doesn't help that much

If this is the code you can put on click for a checkbox to hide a textbox.
If me.YourBoosterCheckBoxName = -1 then 'need the shot so hide the other textboxes
me.TextBox1.visible = false
me.TextBox2.visible = false
'etc....
else
end if

How do you make a code for a checkbox to SHOW a textbox?

View 2 Replies View Related

Exporting Checked Boxes Into Excel

Oct 14, 2004

Dear All:

I posted this question before but I did not include the right information. (Many thanks, Mwalts)

I have created a form with checkboxes. I wish to export data to excel on only the people that are checked.

To export is not the issue. I have created a query to list only the people that are checked. The control souce of the checkbox is called graduated. When I go into the datasheet view, the people who are checked are represented with a -1.

In regards to the design view of the query, what text or value do I place in the critera field to list only the people that are checked?

Any help is greatly apprciated.

Regards,

Dion

View 2 Replies View Related

Counting Checked Checkboxes In A Report

Nov 1, 2004

I have a report, where some features are listed as checkboxes. I'd like to have all checked checkboxes counted at the end of report. I've created text field. What shuold be the command in it ? (to count only checked boxes).

Thanx for any help

View 1 Replies View Related







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