🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.bd.misc
Article #386

Re: Tecla Mayuscula

#386
From: Enderjcp
Date: Sat, 18 Jan 2003 21:32
96 lines
3544 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Esta misma cuestion la tienes respondida en el grupo de
microsoft.public.es.acces, te la transcribo:

Aqui tienes dos funciones, extraidas de la web del Buho: La primera
deshabilita y la segunda habilita.

Option Compare Database
Option Explicit

Function ap_DisableShift()

    On Error GoTo errDisableShift

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

    Set db = CurrentDb()

    db.Properties("AllowByPassKey") = False

Exit Function

errDisableShift:

    If Err = conPropNotFound Then
    Set prop = db.CreateProperty("AllowByPassKey", _
        dbBoolean, False)
        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
'============================================================
Function ap_EnableShift()

    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

Espero te sirvan como a mi me han servido, la verdad es que van muy
bien.
Un saludo.

Enderjcp

visita: http://webs.ono.com/artreide


"listero" <jj.2@wanadoo.es> escribi� en el mensaje
news:b0c9u8$7lt$1@reader2.wnet...
> Hola grupo, tengo una pregunta, o duda.
> Quisiera saber si se puede anular la tecla mayuscula al iniciar una
> base de datos, para q nadie pueda entrar en ella, en modo dise�o.
> O si no se puede q detecte si esa tecla esta presionada y q te pida
> una contrase�a q previamente yo halla guardado en la bd.
>
> Muchas gracias a todos.
>

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBPim52xGfdo4AyYlWEQJ4XwCgsih6dYf9/078eBk8e9gAO443FMMAoMKK
Quko4oT6c9K/9GH5U+USVgab
=0Rwe
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <xJjW9.2311$md.189536@news.ono.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!feed.ac-versailles.fr!fr.usenet-edu.net!usenet-edu.net!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!newsf01.ono.com!news.ono.com.POSTED!not-for-mail
References: <b0c9u8$7lt$1@reader2.wnet>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111a5a,d26793dbad200f4
X-Google-Attributes: gid111a5a,public
X-Google-Thread: 106e2f,d26793dbad200f4
X-Google-Attributes: gid106e2f,public
X-Google-ArrivalTime: 2003-01-18 13:32:21 PST
From: "Enderjcp" <Enderjcp@hotmail.com>
Newsgroups: es.comp.bd.misc,es.comp.bd.ms-access
References: <b0c9u8$7lt$1@reader2.wnet>
Subject: Re: Tecla Mayuscula
Lines: 98
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <xJjW9.2311$md.189536@news.ono.com>
Date: Sat, 18 Jan 2003 21:32:13 GMT
NNTP-Posting-Host: 62.42.42.137
X-Complaints-To: abuse@ono.com
X-Trace: news.ono.com 1042925533 62.42.42.137 (Sat, 18 Jan 2003 22:32:13 MET)
NNTP-Posting-Date: Sat, 18 Jan 2003 22:32:13 MET
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!feed.ac-versailles.fr!fr.usenet-edu.net!usenet-edu.net!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!newsf01.ono.com!news.ono.com.POSTED!not-for-mail