hi guys - pulling my hair out with this one...
code:-----------------------------------------------------------------------
-------
Dim oRs As ADODB.Recordset
Dim strSQLString As String
strSQLString = "SELECT"
strSQLString = strSQLString & " customer.*,"
strSQLString = strSQLString & " Hardware.hardwa retype,"
strSQLString = strSQLString & " Hardware.hardwa redesc,"
strSQLString = strSQLString & " Hardware.hardwa reprice,"
strSQLString = strSQLString & " Invoiced.Transa ctionDate,"
strSQLString = strSQLString & " Invoiced.Transa ctionAmount,"
strSQLString = strSQLString & " Invoiced.Transa ctionNumber"
strSQLString = strSQLString & " FROM"
strSQLString = strSQLString & " Hardware"
strSQLString = strSQLString & " INNER JOIN"
strSQLString = strSQLString & " (customer"
strSQLString = strSQLString & " INNER JOIN"
strSQLString = strSQLString & " Invoiced ON Customer.Custom erID =
Invoiced.Custom erID "
strSQLString = strSQLString & " ON hardware.hardwa reidID =
Invoiced.hardwa reID)"
strSQLString = strSQLString & " WHERE (Invoiced.Trans actionNumber = " &
InvToFind & ")"
----------------------------------------------------------------------------
--
im getting syntax error on the where line..
anyone know where im going wrong?
fenster.
code:-----------------------------------------------------------------------
-------
Dim oRs As ADODB.Recordset
Dim strSQLString As String
strSQLString = "SELECT"
strSQLString = strSQLString & " customer.*,"
strSQLString = strSQLString & " Hardware.hardwa retype,"
strSQLString = strSQLString & " Hardware.hardwa redesc,"
strSQLString = strSQLString & " Hardware.hardwa reprice,"
strSQLString = strSQLString & " Invoiced.Transa ctionDate,"
strSQLString = strSQLString & " Invoiced.Transa ctionAmount,"
strSQLString = strSQLString & " Invoiced.Transa ctionNumber"
strSQLString = strSQLString & " FROM"
strSQLString = strSQLString & " Hardware"
strSQLString = strSQLString & " INNER JOIN"
strSQLString = strSQLString & " (customer"
strSQLString = strSQLString & " INNER JOIN"
strSQLString = strSQLString & " Invoiced ON Customer.Custom erID =
Invoiced.Custom erID "
strSQLString = strSQLString & " ON hardware.hardwa reidID =
Invoiced.hardwa reID)"
strSQLString = strSQLString & " WHERE (Invoiced.Trans actionNumber = " &
InvToFind & ")"
----------------------------------------------------------------------------
--
im getting syntax error on the where line..
anyone know where im going wrong?
fenster.
Comment