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
how to replace all any chr(10)/chr(13) _not_ within html tags with a <br>
C# sharing variables or data between different classes
URGENT: Solaris virtual printer lpd printing setup
VPN 721 error
How to monitor users on WSS 3.0
SSRS Bar Chart
Custom Control Designer Error
.Net Application Security problem
Does OpenOffice allow Windows 7 preview pane to preview .doc and .xls files?
Should I make a Drupal Theme from scratch?