Skip to content
Advertisement

Delete record from table if certain fields are empty upon closing a Form

I am trying to get a button to close a Form and at the same time delete records on a table where certain fields are empty. I have this on the Form:

AlimentoporTanque is the Table’s name and Tanques and Alimento the fields that should not be empty. When I click on the button I get following MsbBox popping up:

enter image description here

What am I doing wrong? How do I get this running? Thanks in advance.

Advertisement

Answer

I got it working. This is the working code:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement