Solved open form wiith criteria not equal "Won" (1 Viewer)

LeeHutchins

New member
Local time
Today, 06:20
Joined
Nov 3, 2020
Messages
13
Hi,

im trying to open my form with a view of all records where [Tender Status] <> "Won" but with the below code it appears with a input box asking me to define "Won"

Code:
      DoCmd.OpenForm "TenderArchive", , , "[Tender Status] <> Won"

how can i do this?

thanks in advance
 

Gasman

Enthusiastic Amateur
Local time
Today, 06:20
Joined
Sep 21, 2011
Messages
14,317
Hi,

im trying to open my form with a view of all records where [Tender Status] <> "Won" but with the below code it appears with a input box asking me to define "Won"

Code:
      DoCmd.OpenForm "TenderArchive", , , "[Tender Status] <> Won"

how can i do this?

thanks in advance
Try
Code:
   DoCmd.OpenForm "TenderArchive", , , "[Tender Status] <> 'Won'"
 

Users who are viewing this thread

Top Bottom