ted.martin
Registered User.
- Local time
- Today, 13:20
- Joined
- Sep 24, 2004
- Messages
- 743
I want to use a variable to filter a form when it opens. In the example below I want the word King to be replaced by a variable like strName which in turn will come from an Input Box.
DoCmd.OpenForm "Employees", , ,"LastName = 'King'"
Can someone please give me the correct code? Thanks and Merry Christmas.
DoCmd.OpenForm "Employees", , ,"LastName = 'King'"
Can someone please give me the correct code? Thanks and Merry Christmas.