The code itself looks ok and it looks like some stuff I have in my own
app... which does work.  So the problem has got to lie somewhere else...
Are you sure there are entries in the table?

What happens if you run this statement:
Cursor cursor = db.query(TABLE_NAME2, null, null, null, null, null, null);

This should return every row in table TABLE_NAME2...

Thanks,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Tue, May 25, 2010 at 7:22 AM, bear35805 <[email protected]> wrote:

> It is the string representation of a number which is the SetID I want.
>
>
> On Tue, May 25, 2010 at 2:29 AM, Justin Anderson 
> <[email protected]>wrote:
>
>> Well, what is strSet?
>>
>>
>> ----------------------------------------------------------------------
>> There are only 10 types of people in the world...
>> Those who know binary and those who don't.
>> ----------------------------------------------------------------------
>>
>>
>> On Mon, May 24, 2010 at 8:27 PM, Kevin Brooks <[email protected]>wrote:
>>
>>> I am trying to pull a group of records based on the value in one of the
>>> fields.  This is what I have tried but it is returning 0 results:
>>>
>>>    private String[] From = {Cardfront};
>>>    private String Where = SetID + " = ?";
>>>    private int setId;
>>>
>>>
>>>   Cursor cursor = db.query(TABLE_NAME2, From, Where, strSet, null, null,
>>> null);
>>>
>>> What am I doing wrong?
>>>
>>> Kevin
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Beginners" group.
>>>
>>> NEW! Try asking and tagging your question on Stack Overflow at
>>> http://stackoverflow.com/questions/tagged/android
>>>
>>> To unsubscribe from this group, send email to
>>> [email protected]<android-beginners%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-beginners?hl=en
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> NEW! Try asking and tagging your question on Stack Overflow at
>> http://stackoverflow.com/questions/tagged/android
>>
>> To unsubscribe from this group, send email to
>> [email protected]<android-beginners%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-beginners?hl=en
>>
>
>
>
> --
> Kevin
> Proverbs 21:6
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to