Urgent Help With IF Statement

Aug 23, 2004

I have 4 fields
Temp - Yes/No
Entry fee - Combo box with Early, Late & Free

On my 3rd field i need to set it so that if Temp=No and Entry Fee=Early
then 25 will appear otherwise if Temp=No and Entry Fee=Late
then 30 appears

on my 4th field i need to set it so that if Temp=yes and Entry Fee=Early
then 40 will appear otherwise if Temp=yes and Entry Fee=Late
then 45 appears...

hope this makes sense...

View Replies


ADVERTISEMENT

What's Wrong With This Create Statement? (Urgent)

Jan 10, 2006

CREATE TABLE Jobs
(jobname LONGTEXT(1000) NOT NULL, [desc] LONGTEXT(1000) NOT NULL,
[req] LONGTEXT(1000) NOT NULL, [specialreq] LONGTEXT(1000) NOT NULL)

Thanks!

View 1 Replies View Related

Queries :: Update Statement For A OUTER JOIN Select Statement

Feb 12, 2014

I have the following Select Statement:

SELECTTenant.ID, Tenant.[First Name], Tenant.[Last Name], Tenant.Address, Tenant.City, Tenant.State, Tenant.Zip, Tenant.[Home Phone], Tenant.[Cell Phone], Tenant.[Work Phone], Tenant.[Rented Unit],
Tenant.[Security Deposit], Tenant.[Move In], Tenant.[Move Out], Tenant.TenantID, Tenant.UnitID, Tenant.PropertyID, Tenant.OwnerID, Owner.Company, Owner.ID AS Expr1, Property.[Property Address],

[code]....

Now, I know that something in the UPDATE statement does not match my select statement.What should my Update Statement be, in order to update all the columns in the joined tables?

View 2 Replies View Related

Queries :: IIF Statement With And In True Statement

Oct 31, 2014

I have a query with the following criteria in one of the fields:

>=DateAdd("m",-12,fom()) And <=DateAdd("m",1,fom())

fom is a function for first of the current month. I need this query to be specific to what month it is when its ran so i want to only have this criteria if the month is > = october. If it isnt October or greater, i want the criteria to reflect this.

>=DateAdd("m",-12,fom()) And <=fom()

Which also works by itself. But when i add it to an iif statement it always produces no results. Below is the iif statement.

Iif(month(date())>=10, >=DateAdd("m",-12,fom()) And <=DateAdd("m",1,fom()),>=DateAdd("m",-12,fom()) And <=fom())

I have also added the column name to each expression and it still doesnt produce any results.

View 4 Replies View Related

Creating IIF Statement In Between Statement For Dates?

Apr 28, 2015

I am creating a multi-search form for a student database, where after I enter my search criteria I hit a "Run Query" command button and then it opens a query form with all of my criteria.So far I can search using last name, first name, and middle name. When I try to search with a start date and end date I am have issues.The start date and end date is for the class date. In the query form under the field, class date, for criteria I wrote:

Between IIf([Forms]![Search Form]![Start Date]="",1/1/10,[Forms]![Search Form]![Start Date]) And IIf([Forms]![Search Form]![End Date]="",4/25/15,[Forms]![Search Form]![End Date])

I want it when I write a date in the start date and end date I want it to give me a list of all the students who took the course between those dates. Also, if I leave the dates blank I want it to search all dates. The dates 1/1/10 and 4/25/15 are just the dates I gave because that is far back as my database goes.

View 11 Replies View Related

Need Help, Urgent. :)

Jul 13, 2006

I have a database of employees, sales, products(Sky and Mobile Phone Contracts) and customers(Need to be common and shared between all products). ( A door-to-door marketing company)

Since each product requires different inputting tables, I have inserted all the required fields into the tblSales and then I want to run a query in order to select the needed fields and create a new Sale of a specific product.

However at the same time I want to create a new customer, assign the sale to an employee, select the commission ID that he is going to receive for the job... etc. Well as you can see the problem is that it is not letting me do it due to the fact that an entry is missing in the other table for that client or a client is not yet created for the sale. (Only one autonumber is assigned.)

What am I doing wrong?

Just in case you want to look at my mess... I have attached the DB :P

View 2 Replies View Related

Urgent Help!!

Mar 16, 2007

Hello,
I have the following "range" table. I have a "txtBoxA" (numeric) and "txtBoxPrice". I have to look in the table for the corresponding range of "txtBoxA" and retrieve the VALUE for that range and store it in "txtBoxPrice"

LOW HIGH VALUE
1 500 40
501 1,000 70
1,001 2,500 90

Example: "txtBoxA" = 200 then the corresponding VALUE would be 40 and I would have to store 40 in "txtBoxPrice"

How would I do this??
I'm doing this in ACCESS
Thank you

View 1 Replies View Related

Urgent Help Please

Apr 5, 2007

My school coursework database is on my memory stick, and i have just opened it, and all my forms, reports and marcos have gone. The file has gone from 12000kb to 10000kb, and a table MSysCompactError automatically created itself. How can i get it all back?????
The last time i accessed the memory stick was on the school PC.

http://img485.imageshack.us/img485/1139/errorzm6.jpg

View 1 Replies View Related

Need Urgent Help

Oct 31, 2007

Hi everyone,

I'm developing a small Access 2003 application for a purchase service that includes managing informations about Suppliers, Customers, Carriers, and Orders.
With the Orders issue, I'v created a form to enter all the informations about the order; customer, supplier, carrier, orderID, and a subform to enter the items with their quantity and unit price... I want to:

1- Add a botton in the form that opens a Word document; a Purchase Order, that includes all the information entered in the form.
2- Add a botton to send this document as an attachement from Access via Outlook.

I need a guide step by step to understand how it works in Access with examples if is it possible.

Any help is highly appreciated,

Best Regards,

View 7 Replies View Related

Help.. Urgent...

Sep 26, 2005

hello!

the scenario..... is i have a column, let say fieldx some of them have 10 characters that is 00000000a0 others are 8 characters 000000ao and i want the 8 char to be also 10 by adding additional 00? is this possible?


thanks...

View 1 Replies View Related

Help Urgent

Apr 30, 2006

hi
my problem is i need query code for
Concatenate Column Values from Multiple Rows into a Single row with Access
like this
Last First Code
------- --------- ----
Lesand Danny 1
Lesand Danny 2
Lesand Danny 3
Benedi Eric 7
Benedi Eric 14

Result should look like:

Last First Codes
------- --------- -----
Lesand Danny 1,2,3
Benedi Eric 7,14

View 2 Replies View Related

URGENT Help Please

Sep 12, 2006

hi everyone

urgent help needed with creating a query please...

I have a table with AutoNumber as primary key.
The second column is called ClassID and the third column is called TeacherID.
I want to run a select query that finds all records where the ClassID column and TeacherID column match.
Basically I want to find records where the fields are duplicated.

How do I do this either through Access query builder or SQL view?

Thanks in advance

View 5 Replies View Related

Urgent!Please Help :(

Feb 21, 2007

Hi Friends,

I am not very gud in MS Access.Please check out the below example and help me.
Product_name Price
P1 $20
P2 $10
P3 $5.......

Mon Week_no Prod_name No_of items
1 1 P1 4
1 4 P1 10
2 4 P1 20
3 4 P1 10
2 3 P2 50........

Assume that Price of P1 changed to $40 in Feb.
Now I want to calculate amount earned by selling P1 from Jan to March.
Remember (For Jan the rate will be $20 and from Feb to March it will be $40)
If I calculate manually it will be - 4*$20 + 10*$20 + 20*$40 + 10*$40

But How do I do it using a query or code??

View 3 Replies View Related

HELP (urgent)

Apr 17, 2005

Hi guys,
im doing a project now, where i have to estimate the service due of cars. For this i need to put a count down timer in one of my FORMS and also REPORTS(sorry about posting about reports in this section but i ddnt want to post twice :rolleyes: but will do if necessary)... i searched a LOT on google but couldnt find anythng..... if some1 could come up with something reasonable, it would be VERY VERY helpful...

Please try to make it before this friday plz if you can...

thanks! :rolleyes:

View 12 Replies View Related

Urgent Help!

Apr 21, 2005

Hi i have imported an excel sheet in form as an OLEUnbound.
The form is for registering product details and the excel sheet iam using for price calculations. But when i register a new product the sheet doesnt clear it shows the same values enterd as in the previous product and when i change them the same thing happens with the previous products. I want to use the same sheet with the calculation differently for all product.B`cus the products doesnt have same price.
Any help. I want to use that one sheet instead of making one own sheet for every products. Use the sheet as an mal or something like that.

Plz help.. :confused:
i have included a picture of my form.
when i should register a new product the sheet should be linked for that product only.

View 4 Replies View Related

Need Urgent Help

Sep 8, 2004

Hy, I’ve got problem that drives me crazy. i have form with two combo boxes and text field which shows value from table based on a criteria from those combo boxes.

Can i use Dlookup function with more than one criteria like

Dlookup(“myField”,”myTable”,”1valueOfTheField inTable=” & forms!myForm!cboFirst.value &”,”2valueOfTheField inTable=” & forms!myForm!cboSecond.value)

I also know how to make a querry in VBA that gives me correct value but i don't know how to put that value(which is currency) in textbox
Or is there other way to solve this problem and get correct value
Thanks for any help

View 3 Replies View Related

Urgent....

Jan 6, 2005

i,m doing a project using Microsoft Front Page.It has to link to database.can i use Microsoft Access to do my database.if not,what should i use?

View 2 Replies View Related

Urgent Help!!!!

Jun 4, 2005

hello to all,

i need help with a basic problem. Is it possible to link a listbox and a calander,
My Main aim is to get a booking board for a hotel database, therefore i want it so that when you click on a particular date, the listbox displays all bookings on that date.

Also i need assistance with using queries for derived entities!!
Please help

View 1 Replies View Related

Urgent Help

Oct 6, 2006

Hi i have a problem coming up with the ans to the last part of this text. Can anyone help me?

The information technology (IT) department in your school has asked you, a part-time
employee at the department, to help create a database to track fundraising activities
and donations in your school. In the past, the school’s fund-raising foundation has
been manually maintaining detailed records of donors and fund-raising activities. The
school’s president has recently asked the IT department to help computerize the
foundation’s records. Your job is to design and implement the database for the
foundation. The following information is captured in the manual records:
1. Individual_Donor name, address, email and phone number.
2. Company_Donor company name, company address, company email address
company phone number, main contact, main contact phone number, main
contact email and phone number
3. Amount of donation and date of donation
4. The donation can be a one-off donation or a monthly donation (interval of one
month from the date of the first donation)
5. Name of fund-raising campaign (New building fund, President fund,
Scholarship fund, Bursary fund, Star fund)
1. Draw the ERD and database schemas for the donor database that you will
design for the foundation. Decompose the ERD where necessary. You can
make any assumptions that are reasonable for the design. Make sure to
suggest attributes that should be included but are currently not in the manual
system. …………………………………………………………(5 marks)
2. Implement the ERD in Access. Design the tables for the donor database. If
the NRIC number of the individual donor is not available right now, what is an
appropriate primary key for the individual donor? Populate your database
donor with records. ……………………………… ...................(3 marks)
3. Create an input form(s) for the donor database. In your design of the input
form(s), create (a) an input mask for a control and (b) a validation rule for a
control……………………………………………………(4 marks)
4. Create a report that lists the donations in the order of descending amount of
donations. Put in the appropriate donation details. Separate individual
donations from company donations. Aggregate the donations for each
category………………………………………………………..(2 marks)
5. Perform the following queries on your database.
a. What is the largest amount of total donations received over a single
month period (first of the month till end of the month) for 2005?
b. Which are the company donors that donated on a monthly basis and
how much are the donations?
c. List the details of individual donors that donated to the New Building
and state how much they are donating to the fund and on what dates.

View 1 Replies View Related

Urgent

Oct 12, 2006

i want to execut two queries from unrelated table in single query.

is it posiible the below logic
"select PRODUCT_NAME from Products and
select Divisionname from Division "

i want to store colums of two different tables in single table

thanks in advance
narasim

View 3 Replies View Related

Very Urgent

Oct 16, 2006

i want to execute two queries from unrelated table in single query.

is it posiible the below logic

Query 1: select PRODUCT_NAME from Products

Query 2: select Divisionname from Division "

i want to execute these queries in single query so that
the resulting recordset contains colums of both the
queries

please help
thanks in advance
narasim

View 1 Replies View Related

Urgent!! 7 Days From Now

Jan 27, 2006

how do i make a query that only shows things with a date in them of only the previous 7 days?

this is urgent due to needing submition in 3 hours time

View 2 Replies View Related

Urgent Help Needed

Jun 19, 2006

A record in a table linked to various others has recently been corrupted in my database. When i try to delete the record an error message appears telling me that the 'Search key was not found in any record' and the record will not be deleted. This corrupted record is causing me serious problems and i need rid of it by the end of the day.

Any suggestions would be greatly appreciated.

View 3 Replies View Related

Urgent Help Needed!!!

Jul 5, 2006

HI,

I am having a problem with all of my comment fields showing up as Japanese and I need to get some reports printed...
Does anyone know how or why this would or could happen?

I have checked the tables but they are normal. When you query the tables is when the comments start to mess up.

Thank you.

Your help is really appreciated!

View 7 Replies View Related

Urgent 2003 To 97

Aug 7, 2006

hey people im new here i have a very important question, how can i get a 2003 databse to be read on access 97!!!!! convert?? change format???? save as???? ive tried what i could but i havtn found a way! please help me!!!

View 2 Replies View Related

Need Urgent Help With Query

Sep 18, 2006

Hi,

I had a query which used to work perfectly fine, then I changed one of the field names that the query was returning. And then, I rechanged the same field back to what it was and I save it. Later, whenever I run that query, it asks for a parameter with the same field name I changed even though I don't have it anymore.

Any suggestions why this is happening please!!!!

Regards,
B
:mad:

View 7 Replies View Related







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