josephbupe
Registered User.
- Local time
- Today, 22:52
- Joined
- Jan 31, 2008
- Messages
- 247
I want to insert OfficerID of the officer currently logged in as a default value into the table T_FileCases when they create a new record. Already in the login form I have a field that holds the OfficerID when logged in successfully.
Is it anything close to this?:
Is it anything close to this?:
Code:
Private Sub Form_BeforeInsert(Cancel As Integer)
If Forms.F_FileCases!txtCaseID.Value >= 1 Then
INSERT INTO T_Cases (OfficerID) values Forms.F_FileCases!txtCaseID;
End If
End Sub