S
sha123
I have been working on this for hours and still cant figure it out....
I have a combo box that selects a description call "land"
I want my query to be able filter the results based on the selection of the
Combo box. The problem I have here is that when I select land, I want it to
be able to produce the records that have "land (large)" and "land (small)"
and "land (medium)"
I have tried all combinations of the IIf and Like statement, but none of them
work.....
here are the ones I have tried
Like IIf([Forms]![Front Page]![SiteTypeCBO]="land","*",[Forms]![Front Page]!
[SiteTypeCBO]
Like IIf([Forms]![Front Page]![SiteTypeCBO]="land","land*",[Forms]![Front
Page]![SiteTypeCBO]
IIf([Forms]![Front Page]![SiteTypeCBO]="Land", Like "land*",[Forms]![Front
Page]![SiteTypeCBO]
plus mane more of this variation....any help is appreciated
Also if there is an easier way to do it in VBA id love to know
Thanks!
I have a combo box that selects a description call "land"
I want my query to be able filter the results based on the selection of the
Combo box. The problem I have here is that when I select land, I want it to
be able to produce the records that have "land (large)" and "land (small)"
and "land (medium)"
I have tried all combinations of the IIf and Like statement, but none of them
work.....
here are the ones I have tried
Like IIf([Forms]![Front Page]![SiteTypeCBO]="land","*",[Forms]![Front Page]!
[SiteTypeCBO]
Like IIf([Forms]![Front Page]![SiteTypeCBO]="land","land*",[Forms]![Front
Page]![SiteTypeCBO]
IIf([Forms]![Front Page]![SiteTypeCBO]="Land", Like "land*",[Forms]![Front
Page]![SiteTypeCBO]
plus mane more of this variation....any help is appreciated
Also if there is an easier way to do it in VBA id love to know
Thanks!