SantasLittleHelper
Board Regular
- Joined
- Nov 25, 2016
- Messages
- 77
I have the following as a Macro which allows me to search for information. E.g. If i searched for the surname Smith, the table on the Split Form will show me the results.
When I click the search button which this Macro is assigned, the 'Enter Parameter Value' box appears and I need to type my search text in again for it to work. Is there a way around this?
Code:
[First Name] Like "*" & [Forms]![Search Staff Records]![Text24] & "*" Or [Surname] Like "*" & [Forms]![Search Staff Records]![Text24] & "*" Or [Date of Birth] Like "*" & [Forms]![Search Staff Records] & "*"
When I click the search button which this Macro is assigned, the 'Enter Parameter Value' box appears and I need to type my search text in again for it to work. Is there a way around this?