PC Review


Reply
Thread Tools Rate Thread

Applying filters from VB

 
 
=?Utf-8?B?YXVkcmV5Ym1vcmlu?=
Guest
Posts: n/a
 
      2nd Jun 2004
Hi

What I have here is probably a syntax problem, but as usual I can't find a solution looking through the help or ms website

I'm trying to apply a filter on a report from VB

I define the string I want as a filter and then pass it to the Me.Filter, and it works fine when I have one parameter, ex. my string i
myFilter = "myNumber = '1'
I'm trying to filter on two parameters, but I don't know how to tell Access, it always gives me a "operator absent" message

Thanks for the help.
 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      2nd Jun 2004

>-----Original Message-----
>Hi,
>
>What I have here is probably a syntax problem, but as

usual I can't find a solution looking through the help or
ms website.
>
>I'm trying to apply a filter on a report from VB.
>
>I define the string I want as a filter and then pass it

to the Me.Filter, and it works fine when I have one
parameter, ex. my string is
>myFilter = "myNumber = '1'"
>I'm trying to filter on two parameters, but I don't know

how to tell Access, it always gives me a "operator absent"
message.
>
>Thanks for the help.
>.
>

 
Reply With Quote
 
Chris Nebinger
Guest
Posts: n/a
 
      2nd Jun 2004
Wow, I'm having finger problems today. Sorry for double
post:

Me.Filter = "Number=1 AND Answer='Right Answer'"

Keep in mind, that numbers are not enclosed in quotes, but
strings are. Dates are enclosed in #'s.

Chris Nebinger


>-----Original Message-----
>Hi,
>
>What I have here is probably a syntax problem, but as

usual I can't find a solution looking through the help or
ms website.
>
>I'm trying to apply a filter on a report from VB.
>
>I define the string I want as a filter and then pass it

to the Me.Filter, and it works fine when I have one
parameter, ex. my string is
>myFilter = "myNumber = '1'"
>I'm trying to filter on two parameters, but I don't know

how to tell Access, it always gives me a "operator absent"
message.
>
>Thanks for the help.
>.
>

 
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
Applying Filters and Turning them off Jarrod Shumaker Microsoft Access Forms 0 6th Mar 2007 06:26 PM
Applying Filters =?Utf-8?B?SmVycnkgTWMgQ2F1bGV5?= Microsoft Access VBA Modules 4 14th Sep 2006 07:56 PM
Applying filters =?Utf-8?B?TGluYSBNYW5qYXJyZXM=?= Microsoft Access VBA Modules 5 29th Jan 2006 12:29 AM
Applying Filters =?Utf-8?B?YmFjb25yb2xs?= Microsoft Access 1 29th Nov 2005 04:06 PM
Applying two or more filters through VB Stepnen Microsoft Excel Programming 5 19th Feb 2004 07:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:17 PM.