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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a report from sql server no dsn

Status
Not open for further replies.

ferlin55

Programmer
May 26, 2006
5
US
I created an access front-end to a sql server database and I'm stuck trying to generate a report via a event procedure. I purposely am not using linked tables and instead connect to the DB using a ADO
connection string. I cant figure out how to base a report on a query where the tables are not linked. I want to be able to use a ADO connection string to query the db and base a report on it. How do I do this?

Any ideas would be extreamly appreciated!!!


Thanks


Seth

 
This should be easy. I should be able to assign the text boxes on the report values based on the query. I cant figure out how to assign the control source or value of the textbox manually?
 
I'm able to connect and query the db just fine. The problem is getting the textboxes on the report to have values based on the query. Seems like it is impossible to assign the text boxes values manually or to base the report on a query using a dsn-less ado connection.
 
It would be possible on a Form since you could return a recordset to the Form recordset object. I don't think this is supported for a Report.

Why can't you connect/link through odbc?
 
I'm trying to avoid having to set up a DSN for each person using the front end. It was working great until I tried to create reports. Is there a was to create a access query that uses ADO and isnt dependent on linked tables?
 
You don't have to setup up a DSN on each persons PC to use odbc.

Here are a couple of threads that explain a little.
thread183-1226714
thread705-1214980

 
I'm using the DSN-less method in my forms but how to do it in a report?

To connect of the forms I use -
Driver{SQLServer};Server=sqlserver;Database=projects;Uid=;Pwd=

Is there a way to set this up to work on a report?

If there is, I could have the query connect and have the report on based upon that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top