andy_dyer
Registered User.
- Local time
- Today, 14:41
- Joined
- Jul 2, 2003
- Messages
- 806
Hi,,
Hi,
I have a form with a list of staff in a combobox cboStaff which displays a list of staff based on a query "qryStaff"
SELECT tblStaff.ID, tblStaff.[User Name]
FROM tblStaff
WHERE (((tblStaff.Enabled)="enabled"))
GROUP BY tblStaff.ID, tblStaff.[User Name];
I want to now add a checkbox to my form "chkAllStaff" which when ticked causes the qryStaff to pick all staff and not just those with the enabled setting.
I've found that I'll need to add some afterupdate code to requery this after the checbox has been updated but can't work out what I need to do to my query to get this to work...
Apologies if this is in the wrong place couldn't decide if this was a forms or queries problem...
Hi,
I have a form with a list of staff in a combobox cboStaff which displays a list of staff based on a query "qryStaff"
SELECT tblStaff.ID, tblStaff.[User Name]
FROM tblStaff
WHERE (((tblStaff.Enabled)="enabled"))
GROUP BY tblStaff.ID, tblStaff.[User Name];
I want to now add a checkbox to my form "chkAllStaff" which when ticked causes the qryStaff to pick all staff and not just those with the enabled setting.
I've found that I'll need to add some afterupdate code to requery this after the checbox has been updated but can't work out what I need to do to my query to get this to work...
Apologies if this is in the wrong place couldn't decide if this was a forms or queries problem...
