WHERE Statement Help

S

Simon Gare

Hi,

cant get to grips with this problem, need to select from dbo.booking_form
all records that meet 2 statements. 1st allocated='completed' and 2nd
account is not 'CASH' , i.e. all records that don't contain the word CASH in
the field 'ACCOUNT' Below is the beginning just don't know the syntax for
NOT, have tried several option but to no avail.

Pricing.Source = "SELECT * FROM dbo.booking_form WHERE allocated =
'COMPLETED' AND

Thanks in advance.

Simon
 
M

Mike Brind

Simon said:
Hi,

cant get to grips with this problem, need to select from dbo.booking_form
all records that meet 2 statements. 1st allocated='completed' and 2nd
account is not 'CASH' , i.e. all records that don't contain the word CASH in
the field 'ACCOUNT' Below is the beginning just don't know the syntax for
NOT, have tried several option but to no avail.

Pricing.Source = "SELECT * FROM dbo.booking_form WHERE allocated =
'COMPLETED' AND

Thanks in advance.

Simon

Pricing.Source = "SELECT * FROM dbo.booking_form WHERE allocated =
'COMPLETED' AND accounts <> 'CASH'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top