C
Chaster
I created my query, in the query builder, and am now trying to paste it into
my module. I don't know how to end a line and let the program know to
continue on with the next line.
I also don't understand where the parts of the Select Statement should be
broken (in the module). Is there an easy way to remember how the statement
should be constructed?
I am reading this as
Select all the airportcodes and areas
from the SupplierRates table
Where the airportcode and the area = the values on the form named
instructions.
'**** AirPort code found - Now check Area
SELECT SupplierRates.AirPortCode, SupplierRates.Area
FROM SupplierRates WHERE
(((SupplierRates.AirPortCode)=[forms]![instructions]![airportcode]) AND
((SupplierRates.Area)=[forms]![instructions]![area]));
The other part I would like help with is now that I have run this query I
want to know if a value was returned. If a value is returned I would do
nothing but if no records were found matching this criteria I would want to
display a
MsgBox " We Can Not Service This Area"
my module. I don't know how to end a line and let the program know to
continue on with the next line.
I also don't understand where the parts of the Select Statement should be
broken (in the module). Is there an easy way to remember how the statement
should be constructed?
I am reading this as
Select all the airportcodes and areas
from the SupplierRates table
Where the airportcode and the area = the values on the form named
instructions.
'**** AirPort code found - Now check Area
SELECT SupplierRates.AirPortCode, SupplierRates.Area
FROM SupplierRates WHERE
(((SupplierRates.AirPortCode)=[forms]![instructions]![airportcode]) AND
((SupplierRates.Area)=[forms]![instructions]![area]));
The other part I would like help with is now that I have run this query I
want to know if a value was returned. If a value is returned I would do
nothing but if no records were found matching this criteria I would want to
display a
MsgBox " We Can Not Service This Area"