Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Access - Controls deaktivieren/aktiveren

Empfohlene Antworten

Veröffentlicht

Hi,

Suche einen Befehl mit dem ich Eingabefelder deaktiveren bzw. aktivieren kann.

Kennt jemand zufällig einen passenden Befehl?

Gruß

Mr.Coffee

Moin !

geht damit:

TextFeld.Enabled = False

macht das Feld grau und man kann es nicht mehr anwählen (es kann keinen Fokus mehr bekommen)

--> entspricht "Aktiviert: nein" in den Eigenschaften

TextFeld.Locked = True

das Textfeld bleibt optisch unverändert, man kann nur die Daten darin nicht ändern.

--> entspricht "Gesperrt: ja" in den Eigenschaften

gruß

Christian

Thx aber wie wähl ich das Feld aus?

mit:

forms.("eingabeformular").controls("artikelobject").enabled=false

klappts nicht

muss ich das mit docmd machen?

wenn ja, wie?

Gruß

Mr.Coffee

die Felder kannst Du direkt ansprechen, wenn Du z.B. ein Textfeld namens "txt_Eingabe" im Formular hast und das deaktivieren möchtest, sieht das in VBA so aus:

txt_Eingabe.Enabled = False

er geht dann automatisch davon aus, das es sich im aktiven Formular befindet

gruß

Christian

Hi!

Du hast bei den Controls die Möglichkeit, denen einen Namen ( Eigenschaft --> Marke, Tag ) zu geben. Damit schalte ich dann meine Controls ein und aus:

------------------------------------------------

Dim ctl as Control

For Each ctl In Forms.Controls

If ctl.Tag = "DEINNAME" Then

If ctl.ControlType <> acCheckBox Then

ctl.Locked = True

ctl.Enabled = False

'ctl.Visible = False

ctl.BackColor = 14469027

ctl.SpecialEffect = 0

End If

End If

Next

------------------------------------------------

Gruss

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.