PC User
Registered User.
- Local time
- Today, 02:20
- Joined
- Jul 28, 2002
- Messages
- 193
I have command button on one form that opens a second form that I want information to be filtered by UserID. I've tried several ways to use filters, but I can't seem to get them to work. Below is my latest attempt to link the forms with a filter. The information displayed on the second form should be all the records associated with the user's UserID. This is not just one record, but are multiple records.
Code:
--------------------------------------------------------------------------------
Private Sub btnAdminCalendar_Click()
Dim strForm As String
Dim strLinkCriteria As String
strForm = "fdlgCalendar_Admin"
strLinkCriteria = "[UserID] = " & Forms!frmMainEntry.cboAdminCalendar.Column(0)
DoCmd.OpenForm strForm, , , strLinkCriteria
End Sub
--------------------------------------------------------------------------------
Help would be appreciated.
Thanks,
PC
Code:
--------------------------------------------------------------------------------
Private Sub btnAdminCalendar_Click()
Dim strForm As String
Dim strLinkCriteria As String
strForm = "fdlgCalendar_Admin"
strLinkCriteria = "[UserID] = " & Forms!frmMainEntry.cboAdminCalendar.Column(0)
DoCmd.OpenForm strForm, , , strLinkCriteria
End Sub
--------------------------------------------------------------------------------
Help would be appreciated.
Thanks,
PC