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 lwilly

  1. lwilly

    Connection open statement not working

    Sorry, I did not get Remou first post but you are both correct. Thank you
  2. lwilly

    Connection open statement not working

    Set statement is the third line and space does not seem to make a difference. When code runs it runs through the connection open and then loops back up to where the sql statement is created.
  3. lwilly

    Connection open statement not working

    I have a select statement that I am trying to open but it never makes it past the recordset open command. Here is the function that is causing me grief. Public Function DeptTimes() Dim rst As ADODB.Recordset Dim cnn As ADODB.Connection Set rst = New ADODB.Recordset Dim strSQL...
  4. lwilly

    Crystal PrintOut Method

    You should be able to stop prompting the user by simply using reportname.printout False
  5. lwilly

    How can I sort all band levels in an MSHFLEXGRID

    I have a grid with multiple bands that need to be sorted. When using rs.sort it is only sorting band 0 and I need to apply the same sort on all bands.
  6. lwilly

    How do I round a number to five?

    Thank you both for the quick replies, I have been scratching around trying to get this and all along it was because my field was an int so it was always rounding down. Thanks again!
  7. lwilly

    How do I round a number to five?

    Could someone give me an idea of how I can round numbers to the nearest five in a select statement? Thank you, Any help would be appreciated.
  8. lwilly

    ERROR: Collation conflict error for concatenation operation

    Thanks for the response. The period is included in the path variable and CO_NUMBER is alpha numeric. Any other thoughts would be appreciated.
  9. lwilly

    ERROR: Collation conflict error for concatenation operation

    Another clue in this puzzle is that when I replace CO_LN_NO with "001" it works fine.
  10. lwilly

    ERROR: Collation conflict error for concatenation operation

    I have already tried using a one long string with no sucess and I believe the last "&" is need to concatenate the closing ".
  11. lwilly

    ERROR: Collation conflict error for concatenation operation

    This is my sql statement: stsql = "SELECT CO_NUMBER as CoNumber,CO_LN_NO as Line,COMP_WC as Parent,COMP_WC as Item, " & _ "ITEM_DESC as ItemDesc,QUANTITY as AuthorizedQuantity, COMP_PRICE as ListPrice, QUANTITY as OriginalQuantity FROM " & strKnzFSDataSQLPath & "FSExtract_HCPCFG WHERE CO_NUMBER...
  12. lwilly

    Subscript out of range error

    Thank you both for the quick response. Took you advice and replaced my code with the Replace() function and of course it works like a charm. Thanks again
  13. lwilly

    Subscript out of range error

    I am using this code to find line breaks in a string of text retrieved from our ERP system and replacing it with a carriage return on my report. Dim strNotes As String Dim strFormatNotes As String Dim intEnterPos As Integer Dim i As Integer strNotes = Me.COLIN_XTXT ReDim strTemp(0) As...
  14. lwilly

    sql statement not working in code, will work when in query

    Thanks for the quick response. Your response was correct and I appreciate you pointing out the errors of my ways.
  15. lwilly

    sql statement not working in code, will work when in query

    I have this sql statement in a module strSQL = &quot;SELECT SUM (IVC_QTY * InvoiceUnitPrice)AS Sales&quot; strSQL = strSQL & &quot; FROM tblSalesDbMaster&quot; strSQL = strSQL & &quot; WHERE IVC_DATE >= &quot; & dteBegin strSQL = strSQL & &quot; AND IVC_DATE <= &quot; & dteEnd Set rst =...

Part and Inventory Search

Back
Top