Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit button with corresponding code does nothing.

Status
Not open for further replies.

KaayJaay

IS-IT--Management
Jul 6, 2004
64
US
Here is my code, Top 20 is a form with 2 toggle buttons on it. The user then select Command135 which is a submit button, but it doesnt run anything when the submit is clicked. Cant figure out why.

Private Sub Command135_Click()

If [Forms]![Repeats Interface]![Top20].OnClick = "Install" Then
DoCmd.OpenReport "Top 20 Installation Criteria", acViewPreview

ElseIf [Forms]![Repeats Interface]![Top20].OnClick = "Repair" Then
DoCmd.OpenReport "Top 20 Repair Criteria", acViewPreview

End If
End Sub

KaayJaay
 
Disregard All, I have found a solution :)

KaayJaay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top