Toon posts:

Password bij tab openen (ACCESS)

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hoe krijg ik bij MS ACCESS 2000 de tab zover dat als hij aangeroepen een wachtwoord dialog box produceert voordat hij de tab laat zien. On_click lijkt niet te werken aangezien deze pas aangeroepen word als er op de form zelf geklikt word.

Hieronder de password code. Let niet op het feit dat het ww in de code staat. Komt nog verandering in.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  Dim strPassword As String
    Dim strEnterPassword As String
    Dim intPasswordCount As Integer
    
    intPasswordCount = 1
    
    strPassword = "cfspass"
    strEnterPassword = InputBox("Enter Password to view/add sensitive information", "Enter Password")
    
    Do While intPasswordCount <= 3
        If strPassword <> strEnterPassword Then
            MsgBox "You have entered an incorrect password. You have " & 3 - intPasswordCount & " attempts remaining.", vbRetryCancel + vbCritical, "Incorrect password"
            intPasswordCount = intPasswordCount + 1
        Else
            MsgBox "blah"
            intPasswordCount = 5
        End If
    Loop

  • Snake
  • Registratie: Juli 2005
  • Laatst online: 07-03-2024

Snake

Los Angeles, CA, USA

2 Tabs maken? Is het wachtwoord correct, dan laat je de andere tab zien?

Going for adventure, lots of sun and a convertible! | GMT-8


  • TeeDee
  • Registratie: Februari 2001
  • Laatst online: 22:41

TeeDee

CQB 241

Iets van TabIndexChanged of tab_Click?

edit:
o bugger, het is ACCESS.

[ Voor 35% gewijzigd door TeeDee op 22-03-2007 11:16 ]

Heart..pumps blood.Has nothing to do with emotion! Bored


  • RobIII
  • Registratie: December 2001
  • Niet online

RobIII

Admin Devschuur®

^ Romeinse Ⅲ ja!

(overleden)

There are only two hard problems in distributed systems: 2. Exactly-once delivery 1. Guaranteed order of messages 2. Exactly-once delivery.

Je eigen tweaker.me redirect

Over mij