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  

Unbound controls on a form



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2004, 02:26 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default Unbound controls on a form

Combine the 2 into one string.

strFilter = "(ProductID = " & Me!ProductID & ") AND (TierID = " & Me!TierID
& ")"

Then end result has to look something like the WHERE clause of a query.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Megan" wrote in message
...
Can you send conditions in a DLookup?
Northwind uses:
strFilter = "ProductID = " & Me!ProductID
Me!UnitPrice=DLookup("UnitPrice", "ProductsPrice", strFilter)

How can I modifiy this to send the price tier?
I've had trouble finding information on DLookup.

So I need something like:

strFilter = "ProductID = " & Me!ProductID
priceFilter = "TierID = " & Me!TierID
Me!UnitPrice=DLookup("UnitPrice", "ProductsPrice", priceFilter, strFilter)

Can you send extra parameters?



  #2  
Old June 7th, 2004, 06:31 PM
megan
external usenet poster
 
Posts: n/a
Default Unbound controls on a form

That makes compete sense. I'll try it. Thank you.


 




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


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