And and Or Function

  • Thread starter Syphonics via AccessMonster.com
  • Start date
S

Syphonics via AccessMonster.com

Can't figure out what is wrong with this?

If (PaymentMethod = "Cheque" Or "Cash") Then

the error state it is a mismatch.
 
S

Syphonics via AccessMonster.com

is it possible to put

If (pyamentmethod = Cheque" Or "InterBank Giro") Then
 
S

Stefan Hoffmann

hi,
Can't figure out what is wrong with this?
The syntax as you figured out :)
If (PaymentMethod = "Cheque" Or "Cash") Then
the error state it is a mismatch.
It must be

If (PaymentMethod = "Checque") Or _
(PaymentMethod = "Cash") Then
' your code
End If



mfG
--> stefan <--
 

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

Top