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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Filtering in a form



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2004, 05:05 AM
SMiller
external usenet poster
 
Posts: n/a
Default Filtering in a form

I'm opening a form and setting the filter as follows:

DoCmd.OpenForm "SalesbyProductDetailedForm", , ,
"[SalesbyProductDetailedForm]![ProductCode] = '" & Me!
[ProductCode] & "'"

However, this command
gives me a space infront of the Me![ProductCode] value,
thus creating the filter to fail.

How do I get rid of it

Thanks

  #2  
Old June 2nd, 2004, 05:11 AM
external usenet poster
 
Posts: n/a
Default Filtering in a form

GOT IT THANK YOU !!!
-----Original Message-----
I'm opening a form and setting the filter as follows:

DoCmd.OpenForm "SalesbyProductDetailedForm", , ,
"[SalesbyProductDetailedForm]![ProductCode] = '" & Me!
[ProductCode] & "'"

However, this command
gives me a space infront of the Me![ProductCode] value,
thus creating the filter to fail.

How do I get rid of it

Thanks

.

 




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 10:40 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.