473,320 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Transfer Excel If statement to Access expression

I have the following formula in Excel and I am trying to transfer the same formula into an expression builder in Access 2007. Does anyone know what the expression should look like in Access?

=IF(LEFT(VATs!H2,3)="L7R",VATs!E2&VATs!F2,IF(VATs! B2="",TRIM(VATs!E2),IF(VATs!B2<>"",TRIM(VATs!B2)," Not Rent")))
Jul 1 '14 #1
3 942
Rabbit
12,516 Expert Mod 8TB
In Access, the IF function is IIF. The only other change you would have to make is to reference your column names instead of the Excel coordinates.
Jul 1 '14 #2
I tried this to see if that if the first 3 letters of my data equal LR7 then I want it to combine the Deposit and Check field, if not bring over 0. And my results were all of the fields have 0 as the results.

CDNumber: IIf(Left([VATs]![Document Number],3)="LR7",[Deposit] & [Check],"0")
Jul 1 '14 #3
Rabbit
12,516 Expert Mod 8TB
[VATs]! was part of your excel reference. Not sure why you're continuing to use the excel reference.
Jul 1 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Arno R | last post by:
Hi all, I need to transfer a lot of (denormalized) data from Excel To Access. Data is totally wrong formatted for my needs. I need to transform rows and columns. I also need to be able to...
3
by: phong.lee | last post by:
Hello all, i'm new at this. I need some assistant in transferring data from excel to access. I created a macro that basically gather all the necessary data that i need to bring into access. I...
1
by: cfyam | last post by:
How can I transfer Excel data to Sql Server?
3
by: Jim Wyse | last post by:
I'm trying to use VB.NET to control Excel and Access, but finding it very slow going. I've just downloaded an Excel sample project from...
2
by: Danielle | last post by:
I have a database of address that are downloaded from the internet to excel. I have imported the data to access to create mail-outs easily, however, it is necessary for me to keep the excel...
3
by: oli insight | last post by:
I have an excel spreadsheet with 500 rows of information. I want to copy and paste that information into an access table that i'm using, column by column.... But access only lets me copy and paste...
12
by: cmghosh | last post by:
how to transfer excel worksheet data to mysql table?
16
by: Phil Stanton | last post by:
I have a form with a button which is supposed to open an Excel file (With lots of Macros /VBA) in it. The Excel file gets it's data from the Access program Here is the code Private Sub...
5
by: algram | last post by:
Hi bytes experts: My boss just told me I have to transfer a huge Budget estimation tool (done in excel) to access in order for it to be more customer friendly. Unfortunately I am not even sure...
2
by: rtilson | last post by:
I am not sure why excel and access use the same method in formula. I am not access expert but been trying to figure it out. Here is the excel formula that I would like to use in access expression...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.