just a qn... I want to write an sql statement in my vbscript
something like this:
If i hardcode the RIC (above eg. RIC = 1234.HK') to delete the row when connecting to DB, yes it can do it. However my RIC value may be random (there's some code above this segment but don't think it's impt here). How do I do it?
Because i've tried and the result is either all rows get deleted or nothing get deleted. Pls help. I know this sounds like a stupid qn.
so far, i've tried : Dim strSQLQuery : strSQLQuery = "DELETE * FROM Initialisation where RIC = RIC Dim strSQLQuery : strSQLQuery = "DELETE * FROM Initialisation where RIC = " &RIC Dim strSQLQuery : strSQLQuery = "DELETE * FROM Initialisation where RIC = '&RIC& " Dim strSQLQuery : strSQLQuery = "DELETE * FROM Initialisation where RIC = " '&RIC'