Microsoft
Software
Hardware
Network
Question : VBA SQL sysntax
This is my query:
sql = "SELECT STOCK.stCode, STOCK.stDescLine1, STOCK.stBarCode, Trim([stCode]) AS BC FROM Exchequer.BGCI02.STOCK STOCK "
sql = sql & "WHERE STOCK.BC = '" & ActiveCell & "'"
The StBarcode fiels has trailing spaces so I need to trim it but Excel returns "Trim is not a built in funtion"
Does anyone know how to acheive this?
Answer : VBA SQL sysntax
try
sql = "SELECT STOCK.stCode, STOCK.stDescLine1, STOCK.stBarCode, RTrim(LTrim([stCode])) AS BC FROM Exchequer.BGCI02.STOCK STOCK "
sql = sql & "WHERE STOCK.BC = '" & ActiveCell & "'"
Random Solutions
Joomla SEF URLs
Configuration for QNAP TS-410U after reset
Public Desktop Icons not showing in RDP sessions
Small Business Server Crital alerts
Exchange 2010 Rollup 3 Issues
NAT setting and vmware
Slipstream all updates into new wim.image / win 7 install DVD
System Restore Points Not Created on Win 7
Arcserve 11.5 and LTO 5
Reset display resolution windows 7