We live near the beach and have yet to figure this one out.
On the other hand, baby powder will remove the sand from your skin.
The bathingsuits, however, will remain full of sand until you either cut out the lining or throw them out. The kids don't seem to mind so we just keep them with sand. (You should see the sandy dryer lint, though. Ick!)