Re: Where Clause in OpenForm statement
- From: Bob Quintal <rquintal@xxxxxxxxxxxxx>
- Date: 30 Jun 2006 13:56:11 GMT
"Mike Charney" <nothing@xxxxxxxxxxxxxx> wrote in
news:Woapg.125616$dW3.100006@xxxxxxxxxxxxxxxxxxxxxxxxxx:
I am having trouble with the where clause in an openreport
statement in an Access Data Project.
DoCmd.OpenReport "rptAllRecords", acViewPreview, , "[active]="
'True'
When I hit the button that is supposed to open the report I
get the following error:
Does anyone know what the problem is?
"[active] = " 'true' has a doublequote wrong.
if active is a text field withe the word true in it, then
"[ACTIVE] = 'true'"
if it's a boolean field,
"[ACTIVE] is true" OR "[active] = 1" will work
"[active] = true" also works in JET SQL, not sure about server.
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
.
- References:
- Where Clause in OpenForm statement
- From: Mike Charney
- Where Clause in OpenForm statement
- Prev by Date: Re: New job Access 97 help please
- Next by Date: Re: New job Access 97 help please
- Previous by thread: Where Clause in OpenForm statement
- Next by thread: Re: Where Clause in OpenForm statement
- Index(es):