Hi,
Problemsituation (see attachment):
I have a report with a couple of text boxes and one checkbox.
Question:
I want that the checkbox checks if the field (productcode) the text "VB" contains. If so then the checkbox will be checked (true).
Own solution until so far:
I added the following code to the controlcource of the checkbox:
The check box will be checked if the productcode is "VB0102".
This works fine, but I want that it also works for the criteria "VB". It's something with the function "Like" I guess.
Please help,
JiTS
Problemsituation (see attachment):
I have a report with a couple of text boxes and one checkbox.
Question:
I want that the checkbox checks if the field (productcode) the text "VB" contains. If so then the checkbox will be checked (true).
Own solution until so far:
I added the following code to the controlcource of the checkbox:
=IIf([txtProductcode]="VB0102";True;False)
The check box will be checked if the productcode is "VB0102".
This works fine, but I want that it also works for the criteria "VB". It's something with the function "Like" I guess.
Please help,
JiTS