My drivers door will not close

finally got it shut so i can drive home and going around corners it was flying open again very dangerous and can not now use my car at all

i moved the metal latch on the body work up down backwards and forwards but still does the same also sprayed loads of wd in to the lock area.

is there anything else i can do before i have to take it to a garage and get robbed ???

thanks james