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

Recent content by duncanstreet2004

  1. duncanstreet2004

    Why no wildcard in SQL when in select criteria?

    Hi all, I have something strange happening with my report running on a SQL Server database. My select criteria includes the following: {LPlusOpenInvoiceHistoryVW.invhst_register_type} like ["NOTE*", "RENT*", "INSTP*"] but the SQL sent to the server (viewed from the Database/Show SQL Query...
  2. duncanstreet2004

    Cascading picklist/prompt question

    Thanks to you both on your answers to this question. I've actually also (since I first posted this morning) run into the same problem with a non-cascading picklist -- any idea why? Thanks. Robin
  3. duncanstreet2004

    Alternative to TTX for CR9 on SQL Server?

    Thanks again for your help on this. I worked out a number of steps in converting stand-alone RPT files from being based on tables to being incorporated in the VB app I've mentioned. First I converted the RPT to run on an SQL command, then I generated a TTX file and converted the report to be...
  4. duncanstreet2004

    Cascading picklist/prompt question

    Hi, I've just moved over to version XI from version 9. I'm following the instructions in the George Peck book for setting up a cascading picklist, but for some reason I only get a limited list of values (5) for the first level, when I expected to get them all (approx 50). I can set up a...
  5. duncanstreet2004

    Alternative to TTX for CR9 on SQL Server?

    Thanks for the response. No, I don't think I'm confusing TTX files with what you mention. I do remember (over two years ago) that I was hoping to move stand-alone reports (either based on tables/views or a SQL command) into the VB application and have the VB app just override the SQL command...
  6. duncanstreet2004

    Alternative to TTX for CR9 on SQL Server?

    Hi all, I'm converting a VB6 application that runs about 60 CR9 reports on a Pervasive database, to run on SQL Server. I'm using a VB form to generate the SQL for each report on the fly. When I originally built the application I used TTX files, but I vaguely remember that I had to do this due...
  7. duncanstreet2004

    Using the IF function in a WHERE clause

    I thought it did -- it has each of the three parts, separated by commas, enclosed by parentheses. Can you tell me how my syntax is incorrect? Thank you!
  8. duncanstreet2004

    Using the IF function in a WHERE clause

    Hi, I need to build a query with a WHERE clause for a Crystal report that essentially tests for something and if true, builds the rest of the WHERE clause one way, and if false, builds the rest another way. I would like to be able to do something like this: WHERE LeaseCompany.LeaseCompanyNum =...
  9. duncanstreet2004

    Syntax for "LIKE" with Pervasive 2000i SP3

    Just got a response on another list -- I was missing a parenthesis after "'CM'))" I needed three rather than just two. Thanks for your willingness to help out.
  10. duncanstreet2004

    Syntax for "LIKE" with Pervasive 2000i SP3

    The error message is: [Pervasive][ODBC Client Interface][Pervasive][ODBC Engine Interface]Syntax Error: 'CM')) AND (OpenivnInvoiceHist.HistTranCode LIKE 'INT%' OR OpeninvInvoiceHist.HistTranCode LIKE 'NOTE%' OR OpeninvInvoiceHist.HistTranCode LIKE 'RENT%' OR OpeninvInvoiceHist.HistTranCode LIKE...
  11. duncanstreet2004

    Syntax for "LIKE" with Pervasive 2000i SP3

    Hi, I'm using LIKE in a SQL statement, as below. Evidently my syntax is incorrect at the end of the statement, however I'm not sure what the problem is -- everything looks fine to me. Any suggestions? Thanks in advance. WHERE (LeaseCompany.LeaseCompanyNum = '09') AND...
  12. duncanstreet2004

    How to get VB code to create v2003 db?

    Hi all, I'm working with a VB app, using DAO 3.6, that used to generate Access '97 databases using the following code: Set dbsNew = wrkDefault.CreateDatabase(strLPAccessInv, dbLangGeneral, dbVersion30) I was able to have it create databases in Access 2000 by changing "dbVersion30" to...
  13. duncanstreet2004

    How to call viewer/report from any of multiple forms?

    Hi, I'm just starting to program with VB, so this is a newbie question. I'm building an application where I choose one of a number of reports, and the form for entering that report's parameters pops up, and then calls the viewer to display that report. The code one usually uses to display the...

Part and Inventory Search

Back
Top