T
Tara
I have a form that is used to collect demographic information for
presentation participants. Depending on certain criteria on the form, I then
need to open one of 2 other forms. What is happening though is that BOTH
forms open, with frmTest on top. Here's the code I currently have:
Dim stLinkCriteria As String
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stLinkCriteria = "[ParticipantID]=" & Me![AttendID]
If Forms!frmParticipants!EducationalLvl = 1 Or 2 Then
DoCmd.OpenForm "frmTest4th5th", , , stLinkCriteria
If Forms!frmParticipants!EducationalLvl = 3 Or 4 Or 5 Or 6 Or 7 Then
DoCmd.OpenForm "frmTest", , , stLinkCriteria
End If
End If
Any help is appreciated!
presentation participants. Depending on certain criteria on the form, I then
need to open one of 2 other forms. What is happening though is that BOTH
forms open, with frmTest on top. Here's the code I currently have:
Dim stLinkCriteria As String
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stLinkCriteria = "[ParticipantID]=" & Me![AttendID]
If Forms!frmParticipants!EducationalLvl = 1 Or 2 Then
DoCmd.OpenForm "frmTest4th5th", , , stLinkCriteria
If Forms!frmParticipants!EducationalLvl = 3 Or 4 Or 5 Or 6 Or 7 Then
DoCmd.OpenForm "frmTest", , , stLinkCriteria
End If
End If
Any help is appreciated!