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
CBT for lotus notes 8.5 and sametime 8.5
SQL Server Script to Backup Database
2008 query in 2000
Redistributing RIP into OSPF non-contiguous subnets.
Unable to Save files in my C drive
How to select all child DIVs except where class=...
How to get past login page strRequestHTML Post
How secure is an HTTP XML Request?
Configuring QoS on Linksys Cisco IP VOIP phone system through residential ADSL2
Custom Shortcut Menus in MS Access 2007