Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / May 2007

Tip: Looking for answers? Try searching our database.

del 2003 al 2000

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Helen - 21 May 2007 14:13 GMT
Hola  todos:

Tengo el siguiente código de Access 2003 que no funciona en Access 2000
(lamebntablemente la BD ha de ser en 2000), el cual copio a continuación:

Function apEnableShift()
   On Error GoTo errEnableShift

   Dim db As Database
   Dim prop As Property
   Const conPropNotFound = 3270

   Set db = CurrentDb()
   db.Properties("AllowByPassKey") = True

Exit Function

errEnableShift:

   If Err = conPropNotFound Then
   Set prop = db.CreateProperty("AllowByPassKey", _
       dbBoolean, True)
       db.Properties.Append prop
       Resume Next
   Else
       MsgBox Err.Number & " / " & Err.Description, vbInformation +
vbOKOnly, "A V I S O"
       Exit Function
   End If

End Function

El problema parece ser que el A 2000 no reconoce el tipo de dato 'Database'

¿alguien sería tan amable de ofrecerme una solución para el Access 2000?.

Gracias a todos de antemano.
missinglinq - 22 May 2007 10:14 GMT
En inglés por favor

>Hola  todos:
>
[quoted text clipped - 33 lines]
>
>Gracias a todos de antemano.

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

RD - 25 May 2007 19:45 GMT
Looks like a DAO reference issue?

My Spanish (I think that's Spanish) ain't so good but, I think Helen needs to
set a reference to DAO and:

Dim db As DAO.Database

And maybe even:
Dim prop As DAO.Property

RD

>En inglés por favor
>
[quoted text clipped - 35 lines]
>>
>>Gracias a todos de antemano.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.