Please help with complex query

Ben2k

Board Regular
Joined
Oct 16, 2002
Messages
77
Hi, I hope someone can assist with this.

I want to create a query which will tell me what vehicles were in stock on a specific date.

I have two tables

CARS
CINVOICE

Linked by a field called StockNumber

I want to return records that have either of these criteria

CINVOICE.Date > 31/7/04

OR

CARS.Status > "In Stock"

I started to build the query as follows.

CINVOICE.Type = "invoice"
CINVOICE.StockNumber
CARS.Cost
CARS.Siv
CARS.ReconCostTotal
CINVOICE.DATE > [forms]![frm_input_historicstock]![date]

This is where I got stuck, this returns records where invoice date is greater than specified date but how do I now add-in records that are simply CARS.Status = "In Stock"

Thanks

Ben
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,221,787
Messages
6,161,960
Members
451,734
Latest member
Anmol Pandey19

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