A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Populate List Box with Parameter



 
 
Thread Tools Display Modes
  #1  
Old March 28th, 2009, 12:23 AM posted to microsoft.public.access
Channell
external usenet poster
 
Posts: 95
Default Populate List Box with Parameter

Hello,

I have a Parameter Query that contains a couple tales and sub query. Under
the criteria section of the field "WorkDate", it goes as follows:
[Forms]![fEMPLOYEEVOLUMECREATOR]![Datetxt]

I have plenty of forms working with a parameter like this, but I need some
help with the following:

After I type in a date in Datetxt, I receive all the records I need.
However, I have a ListBox on this form that I want Populated with all the
employees that worked this particular day. If I choose a different date, I
need the list box to update and populate with the employees that worked this
particular date. Thank you for your help! I very much appreciate you help!

Query:
[DailyInfoID]
[WorkDate]
[EmployeeName]
[Other information and so forth....]

-Scott Channell
  #2  
Old March 28th, 2009, 12:38 AM posted to microsoft.public.access
Channell
external usenet poster
 
Posts: 95
Default Populate List Box with Parameter



"Channell" wrote:

Hello,

I have a Parameter Query that contains a couple tales and sub query. Under
the criteria section of the field "WorkDate", it goes as follows:
[Forms]![fEMPLOYEEVOLUMECREATOR]![Datetxt]

I have plenty of forms working with a parameter like this, but I need some
help with the following:

After I type in a date in Datetxt, I receive all the records I need.
However, I have a ListBox on this form that I want Populated with all the
employees that worked this particular day. If I choose a different date, I
need the list box to update and populate with the employees that worked this
particular date. Thank you for your help! I very much appreciate you help!

Query:
[DailyInfoID]
[WorkDate]
[EmployeeName]
[Other information and so forth....]

-Scott Channell


After Playing with this for a bit, I got it. I feel bad for asking
questions and then figuring out the questions before anyone has a chance to
answer. It is almost as if I am wasting people's time, and I am sorry for
that. However, for those who may be interested, the row source of the
listbox is as follows:

SELECT qVOLUMECREATOR.EmployeeName, qVOLUMECREATOR.Workdate
FROM qVOLUMECREATOR
ORDER BY qVOLUMECREATOR.EmployeeName;

I hope this helps someone!

-Scott Channell
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.