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
setting text of a dynamic dom element using javascript
Microsoft Information Store stalling issues
Exhange 2003 mailbox permissions
javax.servlet.jsp.JspExcep
tion: Cannot retrieve definition for form bean null on action
JavaScript: Get all checkboxes inside div
Impersonate a logged on user
AJAX Refresh on Submit of Pop Up Window
How do I restore Admin Share (Admin$) to 50 workstations on a Win2003 domain?
Crystal cross-tab page numbering
SSMS no tables shown in Query Designer