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

Search results for query: *

  • Users: mattyp75
  • Content: Threads
  • Order by date
  1. mattyp75

    Updating an excel spreadsheet from SQL server using ADO

    I am attempting to insert values in an SQL server 2000 database table into an Excel spreadsheet. I've tried the same code on an Access database (with the connection string modified) and it works fine, but when I run it on my SQL server table it falls over with a Run time error - 1004 Application...
  2. mattyp75

    Does anyone know where on the syste

    Does anyone know where on the system tables i can find information as to whether a table has a primary key or not? I've tried using sysobects and sysindexes (keycnt), but this doesn't appear to be correct. I'm attempting to add primary keys to existing tables and want to check whether they exist...
  3. mattyp75

    Adding a primary key to a column that already exists.

    How do I add a primary key to a column that already exists. I've tried: ALTER TABLE dbo.CensusSourceData_Ilot ALTER COLUMN Column1 ADD CONSTRAINT Column1_pk PRIMARY KEY but that doesn't work. It seems a simple thing to do, but I can't see how to do it anywhere on the web. Any help would be...
  4. mattyp75

    Turning off warning in an Excel VBA module.

    Does anyone know how to automatically turn off warnings in an Excel VBA module? I need to automatically confirm that I want to keep data on the clipboard to paste later, and then to automatically overwrite an existing file without prompting. If anyone knows how to do this it'd be great. I have...
  5. mattyp75

    CSV file output from COBOL

    Does anyone know of any ways to create a csv file output from a COBOL prog? This is with varaiable length fields, depending on what the fields contain. So if a field contains 10 it will output 10 as 2 bytes, whereas if it contains 1000 it will output the 4 bytes. If anyone knows anyway to do...
  6. mattyp75

    progressbar with queries problems.

    Is it possible to add a progressbar to a form on which a query is running, like when you run a query in Access? I have tried various things, but have not found a way to do this. If anyone knows it would be most helpful. Also when I run the code below from a click even on a command button the...
  7. mattyp75

    Querydef novice in need of help

    I am try to write some code that will inside a loop define and create two queries - the first a crosstab query, then from this run a make table query on it to make it permanent. Inside my For Next loop I have the below code: sql_1 = "TRANSFORM Sum([Sample].[" & sumvar & " 2002])...
  8. mattyp75

    passing arguments to mainframe COBOL

    Does anyone know if it is possible to construct a COBOL program on a MVS mainframe and pass arguments to it in much the same way you would pass arguments into a VB program? If anyone has any advice please let me know, thanks, Matt
  9. mattyp75

    reading variable length record file with two ODO arrays.

    I am looking for some help with a COBOL problem: the problem is basically verifying an variable length input file is a valid record and if not change the input file definition to correct for this. The code as is stands is: 03 FILE1-RECORD. 04 FILE1-INFO1 PIC X(90)...

Part and Inventory Search

Back
Top