Hi Guys,
I am currently using a MID command in a query statement that is built on the fly via code. The question is, is there a better command as this command is difficult to keep formatted. Here is an example of my code
The way this command works is straight forward to me, the problem is that I have multiple check box areas on this form and as long as the user selects from the first area all is well but if a user selects from the second area I get an ( or SubAreas ... ) error. Obviously this is caused by not selecting from the first secton. Now how can this be avoided and is there a better command than MID? My understanding of the MID command is to trunicate certain text from the beginning of the search string depending on the number specified. Keep in mind that I need to be able build a query from the different areas of check boxes with some areas having no selection at all depending on the query required.
Thanks
Love and Kisses
Demona
I am currently using a MID command in a query statement that is built on the fly via code. The question is, is there a better command as this command is difficult to keep formatted. Here is an example of my code
Code:
& Mid(SubAreas, 4)
The way this command works is straight forward to me, the problem is that I have multiple check box areas on this form and as long as the user selects from the first area all is well but if a user selects from the second area I get an ( or SubAreas ... ) error. Obviously this is caused by not selecting from the first secton. Now how can this be avoided and is there a better command than MID? My understanding of the MID command is to trunicate certain text from the beginning of the search string depending on the number specified. Keep in mind that I need to be able build a query from the different areas of check boxes with some areas having no selection at all depending on the query required.
Thanks
Love and Kisses
Demona