Hi all,
At the moment i have a form with a button that on press will produce a yes/no message box saying that "would you like to perform a new search" if yes it will activate filter by form mode and clear all grids (accmdcleargrid)i think... not sure :/ and if no will just activate filter by form mode!!... but not sure how to do one command after the other :/
Can anyone enlighten me??
Thx all!!
Private Sub PerformS_Click()
If MsgBox("Would You Like To Perform A New Search?", vbYesNo, "Decision time." = vbYes Then
DoCmd.RunCommand acCmdClearGrid
Else
DoCmd.RunCommand acCmdFilterByForm
End If
End Sub
Thats what i got at the mo... scream any abuse at me saying how wrong it is!! Will
At the moment i have a form with a button that on press will produce a yes/no message box saying that "would you like to perform a new search" if yes it will activate filter by form mode and clear all grids (accmdcleargrid)i think... not sure :/ and if no will just activate filter by form mode!!... but not sure how to do one command after the other :/
Can anyone enlighten me??
Thx all!!
Private Sub PerformS_Click()
If MsgBox("Would You Like To Perform A New Search?", vbYesNo, "Decision time." = vbYes Then
DoCmd.RunCommand acCmdClearGrid
Else
DoCmd.RunCommand acCmdFilterByForm
End If
End Sub
Thats what i got at the mo... scream any abuse at me saying how wrong it is!! Will