Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Query

Status
Not open for further replies.

elibb

Programmer
Oct 22, 2001
335
MX
hi... i have a vb6.0 application and im trying to make a report from an Access database, i created my query in access as query, its like this:
"Select name from Table where id=[?]"

when i run the query in access, it askes for the value of id i want. how can i send the value from my program??

thank You very much

Eli

 
I don't know if CR can see Access query parameters the way it does SQL Server Stored Procedure parameters or CR SQL Designer parameters. You can create a parameter in CR design view and use it in a record selection formula. The data access penalty with an Access database should not be excessive. Then just use tables or an unparametered query as your data source.
 
First create and ODBC connection.
Then in Crystal start a new report using the expert.
Select Databases
ADO make new connection , Uses ODBC connect for ADO
Click ADD and select Query Name
OK
Close
NEXT, Select Fields
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top