I have several keypress events that I wish to process the same way. The following code works fine. I have quite a few similiar statements for the keypress event.
For this reason, I would like the following code to be on one line. When I combine the the two lines, I get a compile error at runtime.
Private Sub fltrColour_KeyPress(KeyAscii As Integer): If KeyAscii = 32 Then fltrColour = "": SetFilters: fltrColour.SetFocus
What am I missing here?