L
ladybug via AccessMonster.com
I have a form with two combo boxes. This is EmployeeName and WeekRange.
Once these two selections are made a Command Button is clicked and the
entries for that particular Employee and Weekrange open up in the second form.
Currently only the date range is being linked. No matter what user is
selected it still shows up as the first user in the second form. Here is my
code below. If anyone can help please paste in the code. Thanks!!!
On Error GoTo Err_Command15_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Timesheet"
stLinkCriteria = "[EmployeeName]=" & "'" & Me![cboSearch] & "'"
stLinkCriteria = "[WeekRange]=" & "'" & Me![Text22] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Once these two selections are made a Command Button is clicked and the
entries for that particular Employee and Weekrange open up in the second form.
Currently only the date range is being linked. No matter what user is
selected it still shows up as the first user in the second form. Here is my
code below. If anyone can help please paste in the code. Thanks!!!
On Error GoTo Err_Command15_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Timesheet"
stLinkCriteria = "[EmployeeName]=" & "'" & Me![cboSearch] & "'"
stLinkCriteria = "[WeekRange]=" & "'" & Me![Text22] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria