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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

list box row source



 
 
Thread Tools Display Modes
  #1  
Old April 22nd, 2010, 04:01 PM posted to microsoft.public.access.queries
deb
external usenet poster
 
Posts: 898
Default list box row source

Access 2003

On my form called f018ContrPerfEmissGua (PK GuaID SK ProjectID) I have a
list box called UnitType.
I need help with the row source

If UnitNo=0, listbox shows all UnitType where ProjectID =
mef018ContrPerfEmissGua.ProjectID

else listbox shows UnitType where UnitID = mef018ContrPerfEmissGua.UnitD

How can I make this work for rowsource in a listbox or combobox?

Thanks,




--
deb
  #2  
Old April 22nd, 2010, 04:56 PM posted to microsoft.public.access.queries
Golfinray
external usenet poster
 
Posts: 1,597
Default list box row source

Could you make the rowsource a query with an IIF statement to select that for
you?
--
Milton Purdy
ACCESS
State of Arkansas


"deb" wrote:

Access 2003

On my form called f018ContrPerfEmissGua (PK GuaID SK ProjectID) I have a
list box called UnitType.
I need help with the row source

If UnitNo=0, listbox shows all UnitType where ProjectID =
mef018ContrPerfEmissGua.ProjectID

else listbox shows UnitType where UnitID = mef018ContrPerfEmissGua.UnitD

How can I make this work for rowsource in a listbox or combobox?

Thanks,




--
deb

 




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 11:24 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.