It sounds like you might have a Cucumber Beetle or Squash Bug problem…common for them.
Here are some links that might help you pin down the exact issue:
I suspect squash bugs from your description. A combination of Pyrethrin (contact killer) and Neem Oil (stops larvae from feeding and maturing) would do the trick.
Follow the directions on the label.
Here’s the label.