but the field in the query is a true/false. So that is why I made it boolean.
Mike
> >I am using a true or false criteria in a query like this in the criteria field:
> >
[quoted text clipped - 21 lines]
>
> John W. Vinson[MVP]
>but the field in the query is a true/false. So that is why I made it boolean.
>
[quoted text clipped - 3 lines]
>> >
>> >Whats_Status("Varname")
You're passing the function a parameter "Varname". That is a literal
text string. It is not a boolean, and the definition of the function
is expecting you to pass a Boolean value (True or False, or
equivalently -1 or 0), NOT a text string.
Could you explain the logic here? Exactly what are you trying to
accomplish? Where does the value of varname get set? Why are you using
varname as both a string constant, and as a variable (I'm guessing
this is an example for the purpose of this newsgroup post, not
actually how you would use the function)?
John W. Vinson[MVP]
mjj4golf - 10 Jul 2006 23:46 GMT
Sorry for the confusion, but that's because I am.
I have a query on a table w/ a boolean. I want to put a variable(boolean)
in a module in a form w/ an option box. Depending on which one is chosen,
the variable is a true or false. I then would do the query using the
criteria in the field.
Mike
> >but the field in the query is a true/false. So that is why I made it boolean.
> >
[quoted text clipped - 16 lines]
>
> John W. Vinson[MVP]