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
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Best way to find out what a user has access to on a file server
Sorry, VMware GO doesn't currently support ESXi servers with multiple datastores.
Problem With Date() function
HiJackThis Analysis. Also "NoIE4StubProcessing"
Quick Launch Tool Bar
Installer error 2869 Windows 7
How to export distributions lists from active directory
Two Networks - Two NICS - Security?
Display Chart in TextBox