Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Access
Message
 
 
To
29/12/2005 18:04:20
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01081897
Message ID:
01082932
Views:
7
Make a query to contain your SQL.
Set the report RecordSource to that query.

In code:
  Build your sql string.
  Change the query's' SQL property to that.
Example:
  stSql = stSql & strWhereClause & ";"
  CurrentDb().QueryDefs("myQuery").Sql = stSql

Voila. You report will use what you built in "stSql" from now on.
This seems like a good way to do this (I am a newcomer to Access.)
- Andy Rice
San Diego, CA
Previous
Reply
Map
View

Click here to load this message in the networking platform