Action Button on Subform with continuous firing every time I click on any of the fields on that line (1 Viewer)

atrium

Registered User.
Local time
Today, 23:12
Joined
May 13, 2014
Messages
348
I have a delete button on each continuous line that deletes the line when required. My problem is that when I click on any of the fields in the line the action button activates. I have a message box come up asking to confirm that you want the record deleted. respond with NO and it goes away. It only happens once on the other fields, after the first time all is OK - I can access the fields on the line
Can anyone tell me why this is happening

Thanks
 

June7

AWF VIP
Local time
Today, 05:12
Joined
Mar 9, 2014
Messages
5,470
If you want to provide db for analysis, follow instructions at bottom of my post.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 21:12
Joined
May 7, 2009
Messages
19,242
check if the code is in the Current Event of the Form.
 

Micron

AWF VIP
Local time
Today, 09:12
Joined
Oct 20, 2018
Messages
3,478
Sounds like you have the code in 2x, once on the button, once somewhere else. I doubt it is the current event because that will fire every time you select a new record, or requery, or refresh, and you say that it only happens once. Maybe duplicate code is in the form Activate or Click event.
 

atrium

Registered User.
Local time
Today, 23:12
Joined
May 13, 2014
Messages
348
You were right Microm, The parent form had the same code, I deleted that and all is OK

Thanks guys I love this forum:)
 

Users who are viewing this thread

Top Bottom