I have a report being printed from a VB front end (VB6, CR8, RDC). The report was created from a dictionary using Access as the back end. We had to upgrade to SQL 2000 because there was too much of a workload for access. Upsizing the DB to SQL took 30 minutes, changing the VB code took 5 minutes, and now i have this damn report that doesnt work. It returns a [SQL Server Driver] error saying
"syntax error near '`'" (the wierd quote CR uses around it's table aliases) The problem is that i don't have any of those quotes in the string i pass to the .SQLQuereyString property. As you can see i'm printing the querey to a text file. I can take this text file and paste it into the SQL Querey window of SQL 2000 and it works like a charm. Somehow CR is changing my querey before it sends it to SQL Server. can anyone help?
Ruairi
Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
"syntax error near '`'" (the wierd quote CR uses around it's table aliases) The problem is that i don't have any of those quotes in the string i pass to the .SQLQuereyString property. As you can see i'm printing the querey to a text file. I can take this text file and paste it into the SQL Querey window of SQL 2000 and it works like a charm. Somehow CR is changing my querey before it sends it to SQL Server. can anyone help?
Code:
CRViewer1.ReportSource = Report
Print #99, RecordSelFormula
MsgBox RecordSelFormula
Report.SQLQueryString = RecordSelFormula
Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.