fr********@yahoo.com wrote:
Wow thats a load of coding for a simple IF.
If you say so. All I see in your example below is aircode that won't
run or produce results.
I provided an example with 3 different values that demonstrated all
possible actions. I did leave off the Sub/EndSub. That probably
confused you.
I did notice we both mentioned the fact the If compare would always be
true. Congratulations.
I noticed you were seeking help for a report in another post. Three
suggestions.
First suggestion, create a main report. Then create a sub report. The
subreport will list the categories. Make it a multi-column report going
accoss then down. It will look much neater than your desired
"CategoryName01, CategoryName03, CategoryName04"
Second suggestion if you want the unclean look. Create a function. No
code provided. Create a textbox in your detail or whatever band and
enter something like
=GetCategoryList([VendorID])
You pass the ID to the function and the function selects all Category
records for that VendorID. The function then scans all categories in
the recordset and concatenates them to the GetCategoryList variable and
returns this list back to the text field.
Third suggestion. Don't be a wiseass.
Yeehaw!
http://www.youtube.com/watch?v=ELJJbkuewi8
>
if ( (Me.tbFirstTextBox.Value <"Foo") AND (Me.tbSecondTextBox.Value
<"Bar") ) Then
Code if user entered neither "Foo" nor "Bar"
else
Code if user entered either "Foo" or "Bar"
endif