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: gregmosu
  • Order by date
  1. gregmosu

    Query result causing excel to crash??

    Nope, bombed out on the same record.. same error message.
  2. gregmosu

    Query result causing excel to crash??

    According to an online book, a cell can contain 32,000 characters. A single column cant be more than 255 char wide, so you must use word wrap to get around that. The size of the string that's crashing excel is 1258 characters. If I reduce the size, it works just fine. Also, I can paste the...
  3. gregmosu

    Query result causing excel to crash??

    just ran a test, and it took 1117 characters. are there any characters that would cause excel to crash?
  4. gregmosu

    Query result causing excel to crash??

    Hi guys, thanks for the replies. I put a LEN() around that field, and it finally produced all 129 records.. and the lenght of the note field causing it to crash is 1274. Also, I can get the field to print out on a Message Box, it only crashes when I write the data to the cell. The cell's format...
  5. gregmosu

    Query result causing excel to crash??

    Hi Rob, I acutally do include a Where clause. It is built depending on what the user selects from the userform. Unfortunately, I cant really eliminate any tables from the join. This runs perfectly in the query analyzer window in Ent. Manager, and runs through a number of records before bombing...
  6. gregmosu

    Query result causing excel to crash??

    I posted a while back about my sql query producing empy results. I ended up going in and changing all the TEXT field to VARCHAR field, and it was working, until I came up on this error today... runtime 1004 error Application-defined or object-defined error This was the value from teh...
  7. gregmosu

    SQL query not working in excel

    The columns that were being omitted were the columns of type 'TEXT' in the sql server. Since I cant find a way to get excel to accept these columns, I went into sql server and changed them all to varchars. Thanks for pointing out the problem Skip.
  8. gregmosu

    SQL query not working in excel

    Found two examples on the web, but they dont work... 1) CASE WHEN IsNumeric(n.note) = 1 THEN n.note || ' ' ELSE n.note END 2) Select CAST(n.note AS TEXT) AS exp1 both run, but produce nothing. Am I at least on the right track...?
  9. gregmosu

    SQL query not working in excel

    Ok, I see what you're saying now. ADO is getting hung up over the datatype. So did you use the IsNumeric function to evaluate it, or something else??? Thanks, Greg
  10. gregmosu

    SQL query not working in excel

    Not 100% sure what you mean.. what if I take out the exp# from my select statement and use rs(0)..(7) to pull in the fields? Also, there is a movenext() I had a bunch of error trapping junk below the ifs that I left out when cutting a pasting. The movenext() must have been left out w/that stuff.
  11. gregmosu

    SQL query not working in excel

    I can run this query in sql server's analyzer and it runs just fine, but when the query runs in excel half the fields are blank.. not NULL, just an empty string. SELECT c.candidateName AS exp1, instat.status AS exp2, instat.comment AS exp3, s.state AS exp4, n.note AS exp5, avail.description AS...
  12. gregmosu

    Need help w/vb

    Ok, I just ended up calling the macro that changes the text from the vb script, and it seems to work just fine. I just need to know how to edit the header and/or images while recording a macro. Is there some trick that I'm not aware of, cause the images and header seem to get locked....?
  13. gregmosu

    Need help w/vb

    I'm trying to put together a console application that will 1) Delete the first image in the word doc and replace it w/another one. 2) Find a text string, and replace it with other text. I had help from other members of this site to get the first part of this done, but the only problem w/it is...
  14. gregmosu

    Batch image change in Word/Excel Docs.

    Yeah, you guys are great! I'd have been lost w/out you!
  15. gregmosu

    Batch image change in Word/Excel Docs.

    Earthandfire, that worked perfectly! Thanks for your help! I can do pretty much the same for spreadsheets by using the Excel component right? Thanks again, Greg
  16. gregmosu

    Batch image change in Word/Excel Docs.

    Fumei, sorry for the misunderstanding. I thought the code you gave me was supposed to go in a console app. or something like that. Is what you gave me supposed to go in a macro? I'm totally confused as to where the code is supposed to go. I'm using Office Word 2003... not sure what version of...
  17. gregmosu

    Batch image change in Word/Excel Docs.

    My brother went down for a visit last summer, and said it was miserable. They never left the house... and when they went to the store, he said his shoes were acutally melting to the blacktop.
  18. gregmosu

    Batch image change in Word/Excel Docs.

    Skip, I've got family in Houston. Does the heat bother you? :) -Greg
  19. gregmosu

    Batch image change in Word/Excel Docs.

    Sorry.. yeah, I'm trying to create a little console app. w/VB.net in Vis. Studio. I was assuming it would create an executable that I could run from the command prompt. I found a little tutorial from google, and kinda incorporated what you gave me into it. I take it I'm heading down the wrong...
  20. gregmosu

    Batch image change in Word/Excel Docs.

    Thanks guys for all your help, input & patience. I'm sure my total ignorance of office products hasnt made this easy for any of you. I'm still having a few issues w/your code fumei... Heres what I have so far, and the compiler is complaining about 'wdGoToGraphic' not being declared...

Part and Inventory Search

Back
Top