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.
...Set rst = New ADODB.Recordset
Dim strSQL As String
Dim dteInDate As Date
Dim dteOutDate As Date
strSQL = "SELECT * FROM [qryTrackingData_EndTimes]"
strSQL = strSQL & "WHERE [UserID] = '" & Me.UserID & "'"
strSQL = strSQL & " AND [SystemDate] >= " & "#" &...
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 =...
I have a user with Outlook 2000 client (with SR-1 (9.0.0.4201) and the security update installed) that also hangs on exit. We are using Windows 98 SE on the front end.
On the back end it is a Microsoft Exchange Server Version 5.5 Build 2653.23 Service Pack 4 running on a NT 4.0 server with...
I have a form that users enter order numbers in to find them. This form has only one field that the user can enter into. I would like to make it select everything in the field after the user enters the search criteria. I have tried setting the focus on this field and have also tried doing a...
Still nothing, I believe there is something in this database that will not allow this. I have other Access databases that I have no trouble with.
Thanks for your help.
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.