gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I have some code for a Toggle button I want to slightly modify
HEre is the Code
I need code that basically says If ToggleBid = True Then ....... I don't want to tie it to the Click of the actual Toggle. I have three other Toggles that basically do exactly the same with the exceptions of the field tblNavigation.Bid_tracker
tblNavigation.Task_tracker
tblNavigation.BOE_tracker
tblNavigation.Cost_tracker
I am trying to convert this so with a Click of a button it runs through all four instead of one at a time, but the condition would still be if the associated toggles (ToggleBid, ToggleTask, ToggleBOE & ToggleCost) = True
Thanks
HEre is the Code
Code:
Private Sub ToggleBid_Click()
DoCmd.RunSQL ("UPDATE tblNavigation SET tblNavigation.Toggle_condition = True WHERE (((tblNavigation.Bid_tracker)='YES'));")
End Sub
I need code that basically says If ToggleBid = True Then ....... I don't want to tie it to the Click of the actual Toggle. I have three other Toggles that basically do exactly the same with the exceptions of the field tblNavigation.Bid_tracker
tblNavigation.Task_tracker
tblNavigation.BOE_tracker
tblNavigation.Cost_tracker
I am trying to convert this so with a Click of a button it runs through all four instead of one at a time, but the condition would still be if the associated toggles (ToggleBid, ToggleTask, ToggleBOE & ToggleCost) = True
Thanks