Solved

setting Access critera in VB5

Posted on 1998-06-28
2
136 Views
Last Modified: 2010-05-03
I have a program that writes to 4 different tables, then a query that pulls all the information out. How can I code it so that when a user clicks on a button, it will ask for some information, then put that information into the criteria of the query so I have one listing that comes up, which is then linked to an Access report that will print out?
0
Comment
Question by:Gatewaytech
[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
2 Comments
 
LVL 3

Accepted Solution

by:
AndreasSchindler earned 100 total points
ID: 1464475
For Example: Your Table is ADDRESS
Name Char(30)
Zip char(7)

Your Query in Access:
Select * from Address where Zip=?

Solution:
make a Table Parameter
ZipPar char(7)

and Change Your Query to:
Select Address.* from Address,Parameter where Zip=ZipPar

By entering Values to the Parameter Table you can choose witch Data the Query will use.

0
 

Author Comment

by:Gatewaytech
ID: 1464476
Wasn't exactly what I was looking for, but it got me to the info that I needed to make it work. You have the points and my thanks. :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

749 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