Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data type conversion error when doing DisableByPassKeyProperty()

Status
Not open for further replies.

DaOtH

Technical User
Jan 22, 2002
114
SE
Hello all...

In this forum i found a posting about disabling the Shift key. I am trying to get this into my database but get a nice error which i can't work around. It might be simple but i don't know.

I am trying to run the following :
Sub DisableByPassKeyProperty()
Dim prp
Set db = CurrentDb
Set prp = db.CreateProperty("AllowByPassKey", dbBoolean, True)
db.Properties.Append prp
End Sub

When running this it gives me an Data Type conversion Error (3421).

Anybody any idea what i am doing wrong here ?

(Using 2000) "In three words I can sum up everything I've learned about life: it goes on."
- Robert Frost 1874-1963
 
it was on the prp= line, but i found whats wrong already...

i tried Dim prp as property already as well but it was nessescary to put Dim prp as DAO.property. "In three words I can sum up everything I've learned about life: it goes on."
- Robert Frost 1874-1963
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top