Solved

setting Access critera in VB5

Posted on 1998-06-28
2
131 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now