Advertisement

04.07.2008 at 01:50PM PDT, ID: 23302731
[x]
Attachment Details

Setting Access Report Filter in VB Code

Asked by Tom_wbi in Access Reports, Microsoft Visual Basic.Net

Tags: MS Access/VB

I am attempting to set an Access Report Filter via my Visual basic Code.

I have some variables, arr(0), arr(2) which hold some values that are being compared

When I have the line:
Me.Filter = " 'arr(0) & ' = ' & arr(2) & ' "  the Filter seems to be working appropriately

When I add the 'TransactionCode <> NULL' part and AND it with the second part, filter no longer works.  What is wrong with the syntax of the following line of code?

Me.Filter = " TransactionCode <> NULL And ' & arr(0) & ' = ' & arr(2) & ' "

Thanks!Start Free Trial
 
 
[+][-]04.07.2008 at 02:11PM PDT, ID: 21300604

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 02:16PM PDT, ID: 21300638

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 05:48PM PDT, ID: 21301740

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Reports, Microsoft Visual Basic.Net
Tags: MS Access/VB
Sign Up Now!
Solution Provided By: harfang
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628