Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

online ASP access database Filter variables

Posted on 1999-06-24
6
Medium Priority
?
219 Views
Last Modified: 2008-02-26
im trying to filter an online ASP access database, but need the filtered item to be a variable.

this works:
objrec.filter = "townid = 7"


this is what i want:
objrec.filter = "townid = x" (where x=7 or another number)


this is the error:
ADODB.Recordset error '800a0bb9'

The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.


please help
thanx in dadvance
0
Comment
Question by:pnreefman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 4

Expert Comment

by:threeps99
ID: 1997444
Have you tried:

"townid = " & x

This should work.

threeps99
0
 

Author Comment

by:pnreefman
ID: 1997445
perfect.. lol
god, an answer within about 15minutes of posting.
post the offical answer if you like and ill accept it

thanx threeps99
0
 
LVL 4

Accepted Solution

by:
threeps99 earned 800 total points
ID: 1997446
Glad to be of help :)
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 4

Expert Comment

by:threeps99
ID: 1997447
and it was actually in nine minutes :) :)

threeps99
0
 

Author Comment

by:pnreefman
ID: 1997448
don't spend it all at once... ;^)
0
 
LVL 4

Expert Comment

by:threeps99
ID: 1997449
You cant actually spend expert points, but thanks anyway :)

And thanks for the A too :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question