iif

  1. A

    help with iif statement in access

    Hi all, I know access is not the best at formulas, but I have certain customer names were they can have the name entered slightly differently ( like Microsoft, Microsoft Inc, Microsoft UK).. Is there a iif contains formula so that if the customer name contains Microsoft then return the word...
  2. gheyman

    Access: IIf formula missing a bracket, parenthesis...

    I'm getting an error message for this IIF statement. My eyes are not seeing where the problem is. IIf(CStr(DateDiff("m",[PDIR Due Date],Now()))=0,1,IIf((CStr(DateDiff("m",[PDIR Submission Date],Now()))<0) AND (CStr(DateDiff("m",[PDIR Completed],Now()))>0),1,0) Thanks! Found it...
  3. M

    Access Query Expression Builder Concatenate IIF syntax, formula help?

    Hello and thank you in advance if you can help, I am trying to create a column in a query that compiles/concatenates information from other columns when certain criteria are met. The problem I am encountering is how to put it in terms of Concatenate IIf, or if that is even valid syntax within...
  4. P

    IIF for Criteria

    Hi! I am trying to use an IIF to determine the day of the week. And then it should return different dates. Here is my problem: If today is Monday, return Monday - Friday of last week. If today is not Monday, return Monday - Now of this week. Below is the code I have tried using: IIF (...
  5. D

    IIF function to display the query if false

    Hi I create IIF funtion in MS Access but dont know how to Open a Query if result is false. Thanks in advance for the help. Or is there is a way to make it in vba? IIF( [center_checkqry]![Plant] <> "",MsgBox("No new Center/s"),
  6. gheyman

    Access: IIF And Questions

    How do you do an "And" formula. I have an IIf statement that works KickOff_A: IIf([tblProposalStatus]![KickOff_Applicable]=-1,[tblProposalStatus]![KickOff_Actual]-
  7. S

    iif question

    My query is returning incorrect column expression. it is centered around the iif statement area. Is my syntax in error? I can pull the iif statement and the query runs fine. SELECT '687547' AS 'Divison ID', '018502' AS 'Customer ID', po_hdr.po_no, po_hdr.date_created AS 'po date'...
  8. A

    Select Query IIF Not testing column value

    Hi all, I have a query that I use to export a text file for another database. I am currently testing changes, and need the same output, but formatted into a series of "Insert Into" statements to be able to develop. So I wrote another query to produce a fully formatted text string for each of...
  9. L

    Issue Subtracting Time

    Hello I want to get hours worked. I am using the below to formulas. The first one is just a straight Start Time - End Time but if that is over 30 minutes I want to use the second formula to subtract 30 minutes for Lunch. They both work but how do I put this into an iif statement. I cannot...
  10. P

    IIF OR Statement Issue

    I have this long IIF statement. Access appears to be placing [] around my quoted TRUE statement in the OR part of the statement. Here is the query: Closed Date: IIf([Delta].[Closed]="Y",IIf([Delta].[Actual End Date] Is Null,[Delta].[Last Update Date],[Delta].[Actual End Date]),IIf([Task...
  11. J

    Try to retrieve All records using an iif statement

    I am trying to run a query using criteria from a form. The criteria has a combo Box with 3 options All, Expense, or Income. With the following 2 formulas I get the correct results if I select "Income" or "Expense", but get nothing if select all. <tbody>...
  12. SharmaAntriksh

    IIF function

    https://uploadfiles.io/glxo4 i have this file at the following link in which i want to apply iif function in a way that if S1 = Operation(S1) then give me value from total otherwise remain blank IIF S2 = S2(operation) then give me value from the same row of the total column otherwise remain blank
  13. J

    Access IIF Statement? (or maybe a "group by") query

    Below is a portion of an Access query result I am working with: Dig ID Address Date Purpose Equipment used 2 131 Frontier 08/08/2015 Main Repair Backhoe 2...
  14. T

    IIF statement and data tracking

    I have a database where the status of a part can change from being in, out, lost, etc. I would like to track when the part goes Lost. I created another field to do this with but when the status changes, the field I create changes. I would like for it to remain as it is no matter what the status...
  15. J

    VBA - find cells in column with a parantheses and display value

    Hello all: I have a column of data where some cells will contain alphanumeric strings and others that will contain alphanumeric strings with a parentheses, number, close parentheses (e.g. Cells F3:F10 could have "E0001", 2, 3, etc) and F11 could have "E0012 (36)". When a cell has no (), then I...
  16. W

    Help with Mutiple Iif statements

    Hi I'm trying to build a query field that returns a label based on total sales of an account. When I try to embed multiple Iif's into a single statement I am recieving an error. Can you help me? SALES TIER: IIf([SALES]>750000,"Tier 4 - >$750,000",IIf([SALES]<250000,"Tier 1 -...
  17. M

    Multiple IIf and AND in a query

    Hi, I am working in a factory as a HR officer. Recently I have made a database on Employee Salary. There is a query of yearly bonus based on Employee’s Job duration. The query is: Bonus...
  18. K

    Use a between statement embedded in an iif statement

    I have 3 radio buttons belonging to a frame on a query form. Based on which radio button is selected, I want to change the query criteria. The radio buttons have to do with which year to search for in a table. The first radio button is "Any," so all records in the table should be returned. The...
  19. K

    Calculations in Forms with Restrictions

    Hi, I have a form with several subforms (using tabs). in each of the subforms for multiple fields I have calculations summing the fields in footer sections. These are then brought into the footer of the main form, so the user can see up to date information on the master record (for lack of...
  20. M

    Help!! Looking for an if statement

    Hi All, I am looking for a formula to put into my access 2007 query screen to be able to recreate an aging report to show only open invoices. EXAMPLE: CUST # CUST NAME DOC TYPE APPLY TO NO TOTAL AMOUNT 1 JOHNNYS...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top