Snowflake68
Registered User.
- Local time
- Today, 08:54
- Joined
- May 28, 2014
- Messages
- 452
I have a query that has parameters which are defined by what is selected in several combo boxes on a form. All this is working fine however I want to create a crosstab query that uses the same query to filter the results in the crosstab.
I have declared the data type for each of the parameters (right click in design view of the crosstab query and select parameters). But each of the parameters has a wildcard statement like the one below. But I get an error saying Invalid bracketing of name 'Like [Forms]![frmSkills]![cboSelectInitials] & "*"
but if I remove the like and the then it works fine.
The code below works OK but I need to include the wildcard bit. Does anyone know what the correct syntax is please?
I have declared the data type for each of the parameters (right click in design view of the crosstab query and select parameters). But each of the parameters has a wildcard statement like the one below. But I get an error saying Invalid bracketing of name 'Like [Forms]![frmSkills]![cboSelectInitials] & "*"
Code:
Like [Forms]![frmSkills]![cboSelectInitials] & "*"
but if I remove the like and the then it works fine.
The code below works OK but I need to include the wildcard bit. Does anyone know what the correct syntax is please?
Code:
[Forms]![frmSkills]![cboSelectInitials]