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.

VBA Access

Empfohlene Antworten

Hallo Leute, ich bins wiedermal :D

habe ein kleines problem:

Private Sub Form_Load()

Dim ParaLogin As String

Dim qry As DAO.QueryDef

Dim rs As DAO.Recordset

Dim rspers As DAO.Recordset

Dim qrypers As DAO.QueryDef

ParaLogin = User()

MsgBox (ParaLogin)

Set qry = CurrentDb.QueryDefs("__bsp__qryLogin")

Set qrypers = CurrentDb.QueryDefs("qryStaffForCombo")

qry.Parameters!ParamLogin = ParaLogin

Set rs = qry.OpenRecordset

Set rspers = qrypers.OpenRecordset

rs.MoveFirst

MsgBox (rs!positionId)

MsgBox (rs!bossId)

MsgBox (ParaLogin)

If rs!staffId = rspers!staffId Then

'Me.staffSearch = rspers!FullName

'Me.staffSearch.Value = rspers!FullName

Me.staffSearch.Text = rspers!FullName '*hier probleme

End If

End Sub

Dies ergibt einen Run-time Error 2185, d.h. access will einen Fokus auf die Form haben, bevor es Me.staffSearch.Text = rspers!FullName einschreibt.

Das Feld ist ein Dropdown TextFeld.

Wie gebe ich Access den Fokus, sprich wie heisst der Zustand der Form nach Load()?

Darf man einem Dropdown menü, den Wert so bestimmen? Am beste wäre, wenn nichts anderes mehr im Dropdown menü auswählbar währe.

Danke für die Hilfe

Gruss

Aezugles

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.