gillbates21
Registered User.
- Local time
- Today, 17:14
- Joined
- Apr 8, 2006
- Messages
- 15
I have the following code:
Getting the strange error 2108 (save the field before using SetFocus)
The error is on the cboULevel.SetFocus line.
The cboUsername combo gets its values form rowsource:
SELECT [tbl_users].[UID], [tbl_users].[Username] FROM tbl_users;
(it displays the values it should just fine)
I also tried the cboUsername_Change sub, but then nothing happens.
Any ideas or has someone accountered smt like this?
Code:
Private Sub cboUsername_BeforeUpdate(Cancel As Integer)
cboULevel.SetFocus
cboULevel.Value = DLookup("ULevel", "tbl_users", "[UID]=" & Me.cboUsername.Value)
End Sub
Getting the strange error 2108 (save the field before using SetFocus)
The error is on the cboULevel.SetFocus line.
The cboUsername combo gets its values form rowsource:
SELECT [tbl_users].[UID], [tbl_users].[Username] FROM tbl_users;
(it displays the values it should just fine)
I also tried the cboUsername_Change sub, but then nothing happens.
Any ideas or has someone accountered smt like this?
Last edited: