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.
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...
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!
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...
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
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...
I have this sql statement in a module
strSQL = "SELECT SUM (IVC_QTY * InvoiceUnitPrice)AS Sales"
strSQL = strSQL & " FROM tblSalesDbMaster"
strSQL = strSQL & " WHERE IVC_DATE >= " & dteBegin
strSQL = strSQL & " AND IVC_DATE <= " & dteEnd
Set rst =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.