Enter Parameter Value Box Appearing?

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.

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?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Think two possible options.

Use the macro section in Access to create the search as described above if it then works convert the macro into code and you have a solution.

Create a query to do the search part by part then it should give you a solution in SQL View.
 
Upvote 0
There are three parameters in your post query so not sure what you are retyping.

also this one appears incomplete (the last one):
[Forms]![Search Staff Records]
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,913
Members
451,730
Latest member
BudgetGirl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top