Mackbear
Registered User.
- Local time
- Today, 15:12
- Joined
- Apr 2, 2019
- Messages
- 168
of course you can, using the form's recordset, is that a subform?
private sub resolveButton_Click()
with me.recordsetClone
if not (.bof and .eof) then
.movefirst
end if
while not .eof
if ![select] then
'add code here when "select" is ticked
end if
.movenext
wend
end with
end sub
doesn't have a tickbox but this 'multiselect' form may do what you want
https://www.access-programmers.co.uk/forums/showthread.php?t=289116
private sub resolveButton_Click()
with me.recordsetClone
if not (.bof and .eof) then
.movefirst
end if
while not .eof
if ![select] then
.Edit
![countryField] = "Zimbabwe"
'untick? for safety.
![select] = False
.Update
end if
.movenext
wend
end with
end sub
doesn't have a tickbox but this 'multiselect' form may do what you want
https://www.access-programmers.co.uk/forums/showthread.php?t=289116
it does for me - have you enabled the code?
![]()
you've probably not included in your form the altback control - or if you have, you've not applied the conditional formattingThis is how it looks like on my end
dim sqlstr as string
sqlstr="Update tbl_LFMngment S...........
debug.print sqlstr
currentdb.execute sqlstr
you've probably not included in your form the altback control - or if you have, you've not applied the conditional formatting
with regards the syntax error - apply the code to a string variable and debug.print it - you should be able to see what the issue is
Code:dim sqlstr as string sqlstr="Update tbl_LFMngment S........... debug.print sqlstr currentdb.execute sqlstr
in the example db, in design view, click on the control then in the ribbon select conditional formatting you will see the code there.I don't know how to apply the conditional formatting though....
you would need a button in the header to update selectedlist value by looping through the recordset. Plenty of examples on this and other forums how you might do this.how do I select all without clicking them all one at a time? like a select all command?
in the example db, in design view, click on the control then in the ribbon select conditional formatting you will see the code there.
you would need a button in the header to update selectedlist value by looping through the recordset. Plenty of examples on this and other forums how you might do this.
However would think it much easier just to have another button to do all your updates without the criteria
already provided in post #5 and from your example in post #12 you have already downloaded it - look in your downloads folderCan I have a link of the example and will those apply to your example form?
already provided in post #5 and from your example in post #12 you have already downloaded it - look in your downloads folder