Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF Statement with Access.

Status
Not open for further replies.

zan03

Technical User
Mar 2, 2010
1
0
0
CA
Hi, The question I have is how to use an IF Statement with Access.
a. Using access I created a table made of 7 columns

1. ID_Number
2. Building_ID
3. Unit_ID
4. Floor_ID
5. WorkItem_ID
6. Quantity
7. Total_Price

From this table, I created a form and added these additional fields.
1. Square feet
2. Linear Feet
3. Quantity

I need to create a Query to calculate this additional field
1. Total Price

For certain work items, you need to multiple one item cost by the square feet and ADD it to the linear feet x another item cost to get the total price for that item.

I have 70 work items, but will only need to run a calculation on about 10 of them…

I do not have a “sq ft” or “ln ft” column in my table, but I created a box for both items in my form… is that the best route?

I’m open to any suggestions as I’m completely lost…

Thanks,

Zanna
 



Check out the IIF() function.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top