PC Review


Reply
Thread Tools Rate Thread

How do I populate listbox1 using the commandbutton8 (Caption Find)

 
 
Joseph Pagan
Guest
Posts: n/a
 
      8th Jun 2009
I want to link the find button to the listbox1.Example: The user enter the
name of the ADM_PERSONNEL in the textbox named ADM_PERSONNEL in the userform
and click the find button automatically the listbox is populated with the
data in that row for the field
ADM_PERSONNE,ADM_TITLE,PI_PD_NAME,UNIT,AGENCY,FILE_NO ect...So i can chose
and look the diferents rows(Proyect) that have the administer personnel.
I hope this helps.
This is the url to download my project
:http://www.4shared.com/file/11064259...e50c/Form.html
 
Reply With Quote
 
 
 
 
Howard31
Guest
Posts: n/a
 
      8th Jun 2009
Do you mean that whatever is in the textbox ADM_PERSONEL that value should
be displayed in the list?

"Joseph Pagan" <(E-Mail Removed)> wrote in message
news:2890B3B2-C2DB-4A8E-9991-(E-Mail Removed)...
>I want to link the find button to the listbox1.Example: The user enter the
> name of the ADM_PERSONNEL in the textbox named ADM_PERSONNEL in the
> userform
> and click the find button automatically the listbox is populated with the
> data in that row for the field
> ADM_PERSONNE,ADM_TITLE,PI_PD_NAME,UNIT,AGENCY,FILE_NO ect...So i can chose
> and look the diferents rows(Proyect) that have the administer personnel.
> I hope this helps.
> This is the url to download my project
> :http://www.4shared.com/file/11064259...e50c/Form.html


 
Reply With Quote
 
Patrick Molloy
Guest
Posts: n/a
 
      9th Jun 2009
replace the textbox, ADM_PERSONNEL, and replace it with a combobox which has
A7:A100 set as the RowSource and the same name, ADM_PERSONNEL

also, set the listbox column count to the correct number of columns.




"Joseph Pagan" <(E-Mail Removed)> wrote in message
news:2890B3B2-C2DB-4A8E-9991-(E-Mail Removed)...
> I want to link the find button to the listbox1.Example: The user enter the
> name of the ADM_PERSONNEL in the textbox named ADM_PERSONNEL in the
> userform
> and click the find button automatically the listbox is populated with the
> data in that row for the field
> ADM_PERSONNE,ADM_TITLE,PI_PD_NAME,UNIT,AGENCY,FILE_NO ect...So i can chose
> and look the diferents rows(Proyect) that have the administer personnel.
> I hope this helps.
> This is the url to download my project
> :http://www.4shared.com/file/11064259...e50c/Form.html


 
Reply With Quote
 
Joseph Pagan
Guest
Posts: n/a
 
      9th Jun 2009
replace the textbox, ADM_PERSONNEL, and replace it with a combobox "Sorry but
Why"
set as the RowSource and the same name."Where is the RowSource?"
also, set the listbox column count to the correct number of columns. "How i
set this. Please could be more explanatory, I'm beginning to excel vba."

"Patrick Molloy" wrote:

> replace the textbox, ADM_PERSONNEL, and replace it with a combobox which has
> A7:A100 set as the RowSource and the same name, ADM_PERSONNEL
>
> also, set the listbox column count to the correct number of columns.
>
>
>
>
> "Joseph Pagan" <(E-Mail Removed)> wrote in message
> news:2890B3B2-C2DB-4A8E-9991-(E-Mail Removed)...
> > I want to link the find button to the listbox1.Example: The user enter the
> > name of the ADM_PERSONNEL in the textbox named ADM_PERSONNEL in the
> > userform
> > and click the find button automatically the listbox is populated with the
> > data in that row for the field
> > ADM_PERSONNE,ADM_TITLE,PI_PD_NAME,UNIT,AGENCY,FILE_NO ect...So i can chose
> > and look the diferents rows(Proyect) that have the administer personnel.
> > I hope this helps.
> > This is the url to download my project
> > :http://www.4shared.com/file/11064259...e50c/Form.html

>
>

 
Reply With Quote
 
Joseph Pagan
Guest
Posts: n/a
 
      9th Jun 2009
This is the example that i am using please look to understand what i doing.
http://www.4shared.com/file/11082201...aBaseForm.html


"Joseph Pagan" wrote:

> replace the textbox, ADM_PERSONNEL, and replace it with a combobox "Sorry but
> Why"
> set as the RowSource and the same name."Where is the RowSource?"
> also, set the listbox column count to the correct number of columns. "How i
> set this. Please could be more explanatory, I'm beginning to excel vba."
>
> "Patrick Molloy" wrote:
>
> > replace the textbox, ADM_PERSONNEL, and replace it with a combobox which has
> > A7:A100 set as the RowSource and the same name, ADM_PERSONNEL
> >
> > also, set the listbox column count to the correct number of columns.
> >
> >
> >
> >
> > "Joseph Pagan" <(E-Mail Removed)> wrote in message
> > news:2890B3B2-C2DB-4A8E-9991-(E-Mail Removed)...
> > > I want to link the find button to the listbox1.Example: The user enter the
> > > name of the ADM_PERSONNEL in the textbox named ADM_PERSONNEL in the
> > > userform
> > > and click the find button automatically the listbox is populated with the
> > > data in that row for the field
> > > ADM_PERSONNE,ADM_TITLE,PI_PD_NAME,UNIT,AGENCY,FILE_NO ect...So i can chose
> > > and look the diferents rows(Proyect) that have the administer personnel.
> > > I hope this helps.
> > > This is the url to download my project
> > > :http://www.4shared.com/file/11064259...e50c/Form.html

> >
> >

 
Reply With Quote
 
Patrick Molloy
Guest
Posts: n/a
 
      9th Jun 2009
your find routine uses the control value...so by using the same name, you
don't need to amend that bit of code

Open the Properties view then select the combobox. Scroll down the list of
properties until you see RowSource
this range is used to populate the control with data
there's also a property called ColumnCount
the default value for this is 1, so you basically enter a single column of
data. However, yuo can add more columns , but you need to set this property
first
- I'd assumed that you had this already, as your code is good for adding
items to a listbox and adding extra columns of data.


"Joseph Pagan" <(E-Mail Removed)> wrote in message
news:953ACE69-7297-425E-AC65-(E-Mail Removed)...
> replace the textbox, ADM_PERSONNEL, and replace it with a combobox "Sorry
> but
> Why"
> set as the RowSource and the same name."Where is the RowSource?"
> also, set the listbox column count to the correct number of columns. "How
> i
> set this. Please could be more explanatory, I'm beginning to excel vba."
>
> "Patrick Molloy" wrote:
>
>> replace the textbox, ADM_PERSONNEL, and replace it with a combobox which
>> has
>> A7:A100 set as the RowSource and the same name, ADM_PERSONNEL
>>
>> also, set the listbox column count to the correct number of columns.
>>
>>
>>
>>
>> "Joseph Pagan" <(E-Mail Removed)> wrote in message
>> news:2890B3B2-C2DB-4A8E-9991-(E-Mail Removed)...
>> > I want to link the find button to the listbox1.Example: The user enter
>> > the
>> > name of the ADM_PERSONNEL in the textbox named ADM_PERSONNEL in the
>> > userform
>> > and click the find button automatically the listbox is populated with
>> > the
>> > data in that row for the field
>> > ADM_PERSONNE,ADM_TITLE,PI_PD_NAME,UNIT,AGENCY,FILE_NO ect...So i can
>> > chose
>> > and look the diferents rows(Proyect) that have the administer
>> > personnel.
>> > I hope this helps.
>> > This is the url to download my project
>> > :http://www.4shared.com/file/11064259...e50c/Form.html

>>
>>

 
Reply With Quote
 
Joseph Pagan
Guest
Posts: n/a
 
      10th Jun 2009
I USE THE comboboX but if not what i looking but Now the form is more decent
with some updates. But you know why the listbox is not populated with data?
The listbox is important because the user does not need the next button to
chose.
Only left that the listbox is populated instead of the userform, so I can
chose in the listbox the row that I want manipulate in the userform. This is
the new form . Download and see the new updates and what i need to complete
the application.
http://www.4shared.com/file/11104395...atrixFORM.html


"Patrick Molloy" wrote:

> your find routine uses the control value...so by using the same name, you
> don't need to amend that bit of code
>
> Open the Properties view then select the combobox. Scroll down the list of
> properties until you see RowSource
> this range is used to populate the control with data
> there's also a property called ColumnCount
> the default value for this is 1, so you basically enter a single column of
> data. However, yuo can add more columns , but you need to set this property
> first
> - I'd assumed that you had this already, as your code is good for adding
> items to a listbox and adding extra columns of data.
>
>
> "Joseph Pagan" <(E-Mail Removed)> wrote in message
> news:953ACE69-7297-425E-AC65-(E-Mail Removed)...
> > replace the textbox, ADM_PERSONNEL, and replace it with a combobox "Sorry
> > but
> > Why"
> > set as the RowSource and the same name."Where is the RowSource?"
> > also, set the listbox column count to the correct number of columns. "How
> > i
> > set this. Please could be more explanatory, I'm beginning to excel vba."
> >
> > "Patrick Molloy" wrote:
> >
> >> replace the textbox, ADM_PERSONNEL, and replace it with a combobox which
> >> has
> >> A7:A100 set as the RowSource and the same name, ADM_PERSONNEL
> >>
> >> also, set the listbox column count to the correct number of columns.
> >>
> >>
> >>
> >>
> >> "Joseph Pagan" <(E-Mail Removed)> wrote in message
> >> news:2890B3B2-C2DB-4A8E-9991-(E-Mail Removed)...
> >> > I want to link the find button to the listbox1.Example: The user enter
> >> > the
> >> > name of the ADM_PERSONNEL in the textbox named ADM_PERSONNEL in the
> >> > userform
> >> > and click the find button automatically the listbox is populated with
> >> > the
> >> > data in that row for the field
> >> > ADM_PERSONNE,ADM_TITLE,PI_PD_NAME,UNIT,AGENCY,FILE_NO ect...So i can
> >> > chose
> >> > and look the diferents rows(Proyect) that have the administer
> >> > personnel.
> >> > I hope this helps.
> >> > This is the url to download my project
> >> > :http://www.4shared.com/file/11064259...e50c/Form.html
> >>
> >>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to populate Label1.Caption with a variable's value Dave O Microsoft Excel Misc 3 25th Apr 2008 03:20 PM
User form caption automatically populate with excel file name Steve Microsoft Excel Programming 2 17th Oct 2006 11:44 PM
Can't find caption style =?Utf-8?B?bXBscw==?= Microsoft Word Document Management 1 22nd Jul 2005 12:22 AM
Userform - Populate Listbox2 based on selection in Listbox1 miker1999 Microsoft Excel Programming 0 29th Apr 2004 04:38 AM
Re: (Worksheet)Listbox1.additem = (Form)Listbox1.value ?? Tom Ogilvy Microsoft Excel Programming 0 2nd Sep 2003 07:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:24 PM.