Hello everyone, I got an error Syntax error From Clause, anyone can help me?

I want to delete rows from 2 tables in my database that has the same LotNo.
I am using c# with MSaccess

I have tables
-Personaldata
-Spouse
Primary keys for each tables is LotNo. Pls, help me, I dnt know if my code for delete is correct or not. Pls, help me.
this is my code

sqlDelete2.CommandText = "DELETE Personaldata.*,Spouse.* from Personaldata JOIN  Spouse using (LotNo) WHERE LotNo=LotNo ";

Thank you

Try this

DELETE  Personaldata.*,Spouse.* from Personaldata INNER JOIN Spouse ON Spouse.LotNo = Personaldata.LotNo
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.