Re: Error 2465
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Thu, 20 Sep 2007 23:30:40 +0800
If no records match the criteria, then the form *will* open to a new record. You're trying to prevent that?
You could set the form's AllowAdditions property to No. That will stop it opening to a new record. Instead, the entire detail section of the form will go completely blank, as explained here:
http://allenbrowne.com/casu-20.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"PHisaw" <PHisaw@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CADB1E80-75E1-4473-92CA-E8A8FCAA96E2@xxxxxxxxxxxxxxxx
Will someone please tell me how to correct this line of code? I've changed
it so many different ways - with and w/out quotes, brackets, parenthesis -
not isnull, is not null, etc. and I get either an error 2465 "can't find
field "|" refered to" or error 13 "type mismatch".
DoCmd.OpenForm "fTTLogOff", acNormal, , "[StopTime]Is Null" And "Not
IsNull[Tech]"
The first part of the code thru "[StopTime]Is Null" was supplied by Allen
Browne and of course works perfectly but I wanted to tack on where Tech is
not null to keep the form from opening with a blank record.
Thanks for any help.
Pam
.
- Prev by Date: Re: Auto Tab
- Next by Date: Re: Error 2465
- Previous by thread: Re: set default view on Access form
- Next by thread: Re: Error 2465
- Index(es):
Relevant Pages
|