If anyone can offer any advice on this i will be most grateful,
Ok im having trouble with an SQL Command, i have to assign the text from List2.Text into a LIKE section of my SQL statement.
That is the statment i am using, and next to the LIKE i have tried allsorts to inset the data for example
WHERE Albumname LIKE 'List2.Text'
WHERE Albumname LIKE '' & List2.Text
WHERE Albumname LIKE List2.text & ''
but also i need to add the % wildcard at the end of List2.text, ive also tried assigning List2.text to a var,
and inserting that between, before and after the '' symbols, but none of it seems to be going, al im getting is when i run it, that its an invalid SQL statement of some description, if anyone can help me, be most greatful. Thank you very much
Ok im having trouble with an SQL Command, i have to assign the text from List2.Text into a LIKE section of my SQL statement.
Code:
statement = "SELECT Albumname, DIR, Mix FROM BonkersListAndDir WHERE Albumname LIKE '' ORDER BY Albumname"
WHERE Albumname LIKE 'List2.Text'
WHERE Albumname LIKE '' & List2.Text
WHERE Albumname LIKE List2.text & ''
but also i need to add the % wildcard at the end of List2.text, ive also tried assigning List2.text to a var,
Code:
Text = List2.Text & "%" statement = "SELECT Albumname, DIR, Mix FROM BonkersListAndDir WHERE Albumname LIKE '' ORDER BY Albumname"
Comment