I'm sorry SteveI - But more information would be required in what you are trying to accomplish.
Because to me what you are asking for is a simple Parameter query.
Give that a search and if it isn't what you need , would you be so kind as to reply with more information please?