473,327 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Problem With Multiple Form Filters

Hi, I have a form that loads with a filter:

Expand|Select|Wrap|Line Numbers
  1.     Me.Filter = "Format = 'Digital'"
  2.     Me.FilterOn = True
  3.  
This filter works fine. Each "Digital" record has a filepath field which is displayed on the form. Upon pressing a button on the form (Check) each filepath is checked to see whether it is still valid. Those which are not valid have their "valid path" field unchecked. The valid path field has a Yes/No format and is displayed as a check box on forms. When the filepath is valid the check box is checked and when it is invalid it is unchecked. At the end of the "Check" procedure I want the form's filters updated so that only the digital records without valid filepaths are displayed. However the code I wrote for this results in an error when run: "Run-time error '13': Type mismatch". Can you see any problems in my code?

Expand|Select|Wrap|Line Numbers
  1.     Me.Filter = "[Format] = 'Digital'" And "[Valid Path] = '0'"
  2.  
Thanks.
Jan 12 '08 #1
2 1476
JKing
1,206 Expert 1GB
Hi, I have a form that loads with a filter:

Expand|Select|Wrap|Line Numbers
  1.     Me.Filter = "Format = 'Digital'"
  2.     Me.FilterOn = True
  3.  
This filter works fine. Each "Digital" record has a filepath field which is displayed on the form. Upon pressing a button on the form (Check) each filepath is checked to see whether it is still valid. Those which are not valid have their "valid path" field unchecked. The valid path field has a Yes/No format and is displayed as a check box on forms. When the filepath is valid the check box is checked and when it is invalid it is unchecked. At the end of the "Check" procedure I want the form's filters updated so that only the digital records without valid filepaths are displayed. However the code I wrote for this results in an error when run: "Run-time error '13': Type mismatch". Can you see any problems in my code?

Expand|Select|Wrap|Line Numbers
  1.     Me.Filter = "[Format] = 'Digital'" And "[Valid Path] = '0'"
  2.  
Thanks.
Hi there,

Give this a try.

Expand|Select|Wrap|Line Numbers
  1.     Me.Filter = "[Format] = 'Digital' AND [Valid Path] = false"
  2.  
Jan 12 '08 #2
Thanks alot! The examples the access help gives are very limited.

Hi there,

Give this a try.

Expand|Select|Wrap|Line Numbers
  1.     Me.Filter = "[Format] = 'Digital' AND [Valid Path] = false"
  2.  
Jan 12 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: tremor | last post by:
I'd like to print a form based on the filters currently applied to it (these are again based on selections in combo-boxes). The form has multiple subforms, and as I try to print it, it prints all...
4
by: i4004 | last post by:
Hi I am trying to put Jpegs into an Access table for use in forms and reports. I can do it - one one of my networked pcs but not on others. The others give me Package, despite every thump...
2
by: yxktmp | last post by:
Hi; I have a main starting query for most of my reporting. I branch out from this query to other queries. This main query contains multiple form control filters (query criterias) . I want to use...
1
by: JC21 | last post by:
Hi guys, I was wondering if someone could give me some insight on this. On a form I would like to have 3 combo boxes which can be used as filters. I would like the information to be displayed on a...
5
by: favor08 | last post by:
have a mainform called PendingsMain and a subform called PendingsSub. You can filter the subform by different filters and this works fine. i want to create a report that will print out the...
1
by: Memphis Steve | last post by:
Is it possible to combine multiple javascipts into one file and then call that file from a linked URL in the head section of an XHTML file? Here are the two scripts I want to use with the...
4
by: STIAdmin | last post by:
Happy Holidays to all of you! This is my first time posting. I'm working on a web project and trying to get this done before Christmas. The limitation is that I'm using an out of the box program...
3
by: paulus4605 | last post by:
dears since I'm new to ruby I try to create a form within ruby on rails. this is my controller require "player" class SpelersController < ApplicationController def index @speler =...
6
by: iheartvba | last post by:
Hi, I have a form where users have to go through a lot of data. The data is being viewed in a list box. This is because they need to be able to select one of the items in the list. The list box...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.