ms access - Limiting Linked Table Results -
i have table have linked database has both active , inactive employees. wanting see active employees inthe linked table. know how through query, dont want have query if there way show records have "active" in status field.
with linked table open in datasheet view, click status column apply filter ... in access 2007, click filter (funnel) icon on "sort & filter" section of "home" ribbon. choose "equals" "text filters" dropdown of resulting dialog , enter active in text area. click ok , save table layout clicking save icon or ctrl+s keyboard shortcut.
then open table in design view. click yes "open anyway" when warns you can't modify design of linked table. (you won't modifying table design, changing item in tabledef.properties collection.) there, open table's property sheet, locate "filter on load" property , set yes. close table , click yes when access asks whether save change.
if instructions adequate, should see rows status="active" when reopen linked table in datasheet view.
here screen capture system saved filter expression, ([assetmovements1].[assignedto] like"a*"), assetmovements1 linked table.

those properties set vba code if prefer. beware filter user-created property means doesn't exist in properties collection until assign value. code, need use createproperty method , assign property value.
Comments
Post a Comment