> I am trying to create a ListBox based on a search from a TextBox. I have a
> TextBox where I will enter in a MemberAlias. I want to click on a Search
[quoted text clipped - 8 lines]
> will use the text from the TextBox and query based on that text. Thanks in
> advance for the help.
Okay, this looks similar to what I have. Couple questions:
When you state, "under the MemberAlias field" how do you mean. Is it this:
Select *
from Person
where (MemberAlias = '[Forms]![Form1]![MemberAlias]')
Next Question:
Which Event to I place the AfterUpdate into? The textbox, the search button.
thanks so much.
>> I am trying to create a ListBox based on a search from a TextBox. I have a
>> TextBox where I will enter in a MemberAlias. I want to click on a Search
[quoted text clipped - 12 lines]
>When you enter an alias, in the AfterUpdate event enter
> Me.ListBox1.Requery
salad - 07 Dec 2005 18:23 GMT
> Okay, this looks similar to what I have. Couple questions:
>
[quoted text clipped - 3 lines]
> from Person
> where (MemberAlias = '[Forms]![Form1]![MemberAlias]')
In the Querybuilder, on the Criteria row, enter
[Forms]![Form1]![MemberAlias]
That's basically what you have.
> Next Question:
>
> Which Event to I place the AfterUpdate into? The textbox, the search button.
I'm not sure why you have a Search button. If I entered something in
the text box I'd want to update the list. If using a button, put it in
the OnClick event.
> thanks so much.
>
[quoted text clipped - 16 lines]
>>When you enter an alias, in the AfterUpdate event enter
>> Me.ListBox1.Requery
daddydfsu - 07 Dec 2005 18:37 GMT
It looks like I have all of this correct according to what you have posted,
it is just not pulling back the data. I know the query works because I can
hard code the value in and it populates that listbox. I will keep plugging
away at it. Thanks for taking a look at this.
>> Okay, this looks similar to what I have. Couple questions:
>>
[quoted text clipped - 20 lines]
>>>When you enter an alias, in the AfterUpdate event enter
>>> Me.ListBox1.Requery
David W. Fenton - 08 Dec 2005 01:02 GMT
> When you state, "under the MemberAlias field" how do you mean. Is
> it this:
>
> Select *
> from Person
> where (MemberAlias = '[Forms]![Form1]![MemberAlias]')
Well, you obviously have to replace "Form1" and "MemberAlias" with
the name of the form your listbox is on and the name of the unbound
control that you are typing the alias into for searching.
That control is the one where the Afterupdate event should be.

Signature
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
daddydfsu - 08 Dec 2005 02:06 GMT
Yes, I did do that and replace it with my actual names. and I did have the
Afterupdate in the control, but it was still not working.
>> When you state, "under the MemberAlias field" how do you mean. Is
>> it this:
[quoted text clipped - 8 lines]
>
>That control is the one where the Afterupdate event should be.
Also, do I put this in the Criteria Column in the SQL Query Builder.
[Forms]![Form1]![MemberAlias]
>> I am trying to create a ListBox based on a search from a TextBox. I have a
>> TextBox where I will enter in a MemberAlias. I want to click on a Search
[quoted text clipped - 12 lines]
>When you enter an alias, in the AfterUpdate event enter
> Me.ListBox1.Requery
salad - 07 Dec 2005 18:24 GMT
> Also, do I put this in the Criteria Column in the SQL Query Builder.
> [Forms]![Form1]![MemberAlias]
That's what I'd do.
>>>I am trying to create a ListBox based on a search from a TextBox. I have a
>>>TextBox where I will enter in a MemberAlias. I want to click on a Search
[quoted text clipped - 14 lines]
>>When you enter an alias, in the AfterUpdate event enter
>> Me.ListBox1.Requery