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: *

  1. ADoozer

    Excel 2010 Worksheet.copy with CSV file

    Combo. Adding the debug line "Debug.Print xlWB.Sheets(1).Cells(1, 1)" prints to the immediate window without issue but the code still fails when copying the worksheet. It really looks like 2010 is not capable of copying a csv sheet to a workbook!! SkipVought I will have a play around with...
  2. ADoozer

    Excel 2010 Worksheet.copy with CSV file

    SkipVought, combo. The CSV files are generally exported files from PLC's and as such I haven't really had issues with formatting. (Duly noted your concerns with potential data changing). This sub works in older versions of excel (2003, 2007) but for some reason does not work in 2010 with CSV...
  3. ADoozer

    Excel 2010 Worksheet.copy with CSV file

    Hi All. I have a "simple" little question... I use the following few lines of code all the time for importing a worksheet from an external excel workbook (xls, xlsm, csv) into my current excel workbook. Public Sub LoadData() Dim xlWB As Excel.Workbook Dim xlMain As Excel.Worksheet...
  4. ADoozer

    T-SQL (From C#) query taking progressively longer on 1 machine

    Thanks for the input guys. John, Will replacing * with all the fields be quicker (I need to return all the fields) My laptop (the quick version) is running SQL server express (2008 R2) and the c# app is connecing by machine name The other box is running SQL full and is also being connected...
  5. ADoozer

    T-SQL (From C#) query taking progressively longer on 1 machine

    Hi All. I am having an issue with a T-SQL statement from a C# application on 1 machine. The more times the query executes the longer the time it takes to return. On my test machine the query takes less than 2 seconds (and can finish the batch in about 6 hours), but on the box in question the...
  6. ADoozer

    Creating a SQL statement to copy the structure of a table

    thanks for the input guys. I will have a look into the ssms object and see if that helps, but as I suspected it looks like i will need to pick apart the various system objects for the info. I will be back looking at this code at some point this week so will post some more feedback then...
  7. ADoozer

    How to create table in SQL with Constraints

    Hi all... Please see thread183-1652081 I am trying to create a table with constraints to mimic an existing table. Any help would be greatly appreciated If somethings hard to do, its not worth doing - Homer Simpson Jack of all trades, king of none!
  8. ADoozer

    Creating a SQL statement to copy the structure of a table

    Just as an update this is what i have so far (and I hope there is a much easier/simpler way of doing it) To get the column information I am using: string mySQLGetColumnData = "SELECT syscolumns.name, systypes.name, syscolumns.[length], syscolumns.isnullable, syscolumns.colstat"...
  9. ADoozer

    Creating a SQL statement to copy the structure of a table

    Hi folks. I have recently taken over a project which has a lot of SQL related elements. (SQL is really not my field but I can muddle through it). Anyway, the question. When I go into SQL Server Management Studio and right click on my table and select "Create To", A nicely formatted SQL...
  10. ADoozer

    Troubles with Excel in VB6.

    its a bit of a hack, but you could try. Dim WithEvents objQuote As Excel.Application Dim objWorkBook As Excel.Workbook Dim objWorkSheet As Excel.Worksheet Private Sub OpenFile() Set objQuote = New Excel.Application Set objWorkBook = objQuote.Workbooks.Open("C:\File1.xls", , True)...
  11. ADoozer

    writing bits to file

    there are 6 data types in all hence the 3 bits. As for keeping a second file with type information, (considering an average dataset holds circa 600 million records) i think it will be easier to write and read from 1 file only (with respect to file operations im not sure of the overheads...
  12. ADoozer

    writing bits to file

    cpjust: let us assume i have a type 1,2,3,4 in a row:- idealy i want Hex: 20 04 33 00 50 02 00 40 00 C0 70 02 00 40 00 83 Hex: 90 02 00 40 00 82 0C this way i can read in the first byte and check bits 5/6/7 to find the type (and hence move to the next "record") if the data is saved as...
  13. ADoozer

    writing bits to file

    having a rough day today so thought id throw out a post for help. the scenario is this, i have a program that creates datasets, with my original coding the data was outputted as padded char's as such:- type 1 data [byte][byte][byte][byte][byte][byte] [type][ set1 ][ set2 ][qual] type...
  14. ADoozer

    FTP or file sharing solution

    thanks. will give the links a viewing. i assumed there may be an issue of connecting via the wan from another PC on the same network, but i got a friend to try and connect with the same results If somethings hard to do, its not worth doing - Homer Simpson too much 49374'ing, im 57005... need...
  15. ADoozer

    FTP or file sharing solution

    i have, and it doesnt help. even with ports 20 and 21 forwarded/open the session still times out due to no response from the server (both PORT and PASV). if i stick the server in the DMZ then i can connect.. but thats not realy a solution. nor can i do any fancy administrator settings to...
  16. ADoozer

    FTP or file sharing solution

    Ive run into the same problem everyone else seems to have regarding an FTP server on a local network. Im trying to access the ftp server from the internet, however it is located behind a router with NAT and this is obviously not allowing the connection. the router is a belkin f5d5230/4 which...
  17. ADoozer

    Annoying "Bug" involving regional settings

    aha. i never got round to testing the compiled program. very frustrating "bug" non the less. Im just glad im not a dutch programmer. If somethings hard to do, its not worth doing - Homer Simpson
  18. ADoozer

    Annoying "Bug" involving regional settings

    thanks for the info mike, i still find it rather odd that there is no fix for this. does nobody write apps for the dutch? i suspected the comma may be the issue (as i read it on many sites) however when i look at the *.frm file it is indeed a decimal point (15.75 as stated) since posting i...
  19. ADoozer

    Annoying "Bug" involving regional settings

    windows 2000 pro full service packs, Visual studio 6 enterprise sp6. windows xp pro full service packs, visual studio 6 enterprise sp6 (* 2). and the problem still persists. did you look at the *.frm file? had your size 16 been modified to 15.75? im not alone in this problem...
  20. ADoozer

    Annoying "Bug" involving regional settings

    your missing the point. try this. add a label, set its font to arial and size to 16, run the "simple test" and in my case it works for dutch and english. now close the project and reopen it (this is the point where VB changes the value from 16 to 15.75) now try running the program again...

Part and Inventory Search

Back
Top