I have a problem I created an Employee form and on the form I have a preview enrollment button that would open either forms (1) SESP Enrollment- Above 170K or (2) SESP Enrollment-Below 170K. These enrollment forms are regulated by a text box that requires a number input. If it's 150K then the form Below 170K will open up, etc.
My problem is that once I click on the Preview Enrollment button I want to view the form for the specified individual. So a person who does not have an enrollment form a blank form should be shown. If someone filled out the enrollment form than the preview button will illustrate that person's enrollment form. This is the coding I have which is not working ..
If Me![SESP Enrollment] > 170 Then
DoCmd.OpenForm "SESP Enrollment (Above 170K)"
DoCmd.GoToRecord , , acGoTo
Else
DoCmd.OpenForm "SESP Enrollment (Below 170K)"
DoCmd.GoToRecord , , acGoTo
End If
If Me![SESP Enrollment] > 170 Then
DoCmd.OpenForm "SESP Enrollment (Above 170K)"
DoCmd.GoToRecord , , acGoTo
Else
DoCmd.OpenForm "SESP Enrollment (Below 170K)"
DoCmd.GoToRecord , , acGoTo
End If
DoCmd.OpenForm "SESP Enrollment (Above 170K)" Or "SESP Enrollment (Below 170K)", acPreview, [Employee Information]
Any suggestions????
My problem is that once I click on the Preview Enrollment button I want to view the form for the specified individual. So a person who does not have an enrollment form a blank form should be shown. If someone filled out the enrollment form than the preview button will illustrate that person's enrollment form. This is the coding I have which is not working ..
If Me![SESP Enrollment] > 170 Then
DoCmd.OpenForm "SESP Enrollment (Above 170K)"
DoCmd.GoToRecord , , acGoTo
Else
DoCmd.OpenForm "SESP Enrollment (Below 170K)"
DoCmd.GoToRecord , , acGoTo
End If
If Me![SESP Enrollment] > 170 Then
DoCmd.OpenForm "SESP Enrollment (Above 170K)"
DoCmd.GoToRecord , , acGoTo
Else
DoCmd.OpenForm "SESP Enrollment (Below 170K)"
DoCmd.GoToRecord , , acGoTo
End If
DoCmd.OpenForm "SESP Enrollment (Above 170K)" Or "SESP Enrollment (Below 170K)", acPreview, [Employee Information]
Any suggestions????