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
Exchange Edge Transport Issues
Backup Exec 2010 fails on VSS services
asp - The resource could not be found
Will there be a 13" Macbook with an iCore processor anytime soon? Safe to buy C2D?
Problems Replicating SYSVOL and NETLOGON on new DC WS 2008 R2 Standard in 2003 AD
SBS 2003 server losing computer account
do i need licenses per user if i buy exchange server?
Clearing a submit form once submitted
Stringtopostnet function not working in Crystal viewer 2008 ---
Possible Virus Infection - Can not connect to Internet, Max TCP connections reached.