PC Review


Reply
Thread Tools Rate Thread

AllowBypassKey and Type Mismatch Error

 
 
Harvey
Guest
Posts: n/a
 
      11th Feb 2009
Hello:

I have been trying to incorporate either Albert Kallal's solution:

http://www.members.shaw.ca/AlbertKal.../msaccess.html

or Microsoft's:

http://support.microsoft.com/kb/826765#appliesto

and in both cases, in my Access 2003 db, I get a type mismatch error at


Set prop = db.CreateProperty("AllowByPassKey", _
dbBoolean, False)

would anyone know what the problem is here?

thank you
Harvey

 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      12th Feb 2009
On Wed, 11 Feb 2009 12:17:01 -0800, Harvey
<(E-Mail Removed)> wrote:

Make sure that db is declared as a DAO.Database, and prop is a
DAO.Property.
Set OPTION EXPLICIT.

-Tom.
Microsoft Access MVP


>Hello:
>
>I have been trying to incorporate either Albert Kallal's solution:
>
>http://www.members.shaw.ca/AlbertKal.../msaccess.html
>
>or Microsoft's:
>
>http://support.microsoft.com/kb/826765#appliesto
>
>and in both cases, in my Access 2003 db, I get a type mismatch error at
>
>
>Set prop = db.CreateProperty("AllowByPassKey", _
>dbBoolean, False)
>
>would anyone know what the problem is here?
>
>thank you
>Harvey

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 13 - Type Mismatch Bellyjeans Microsoft Access 1 15th Sep 2010 05:06 PM
type mismatch and allowbypasskey Harvey Microsoft Access Security 5 17th Feb 2009 08:30 PM
Need Help -- Type MisMatch Error 13 TL Microsoft Access 1 25th Sep 2008 01:49 AM
Help: Compile error: type mismatch: array or user defined type expected lvcha.gouqizi Microsoft Excel Programming 1 31st Oct 2005 08:20 PM
Type mismatch error (different than previous type mismatch?) Roberta Microsoft Access VBA Modules 3 9th Jan 2004 06:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:13 AM.