I have a list box that has a through z in it, lstAlpha. I’ve added a thru z in the lstAlpha through additem.
When I click on a letter in lstAlpha, I want my flexgrid (flxClient) to populate with the client’s name that have that first letter in their name from my tblClient.
dim rs as new ADODB.recordset
“SELECT ClientName FROM tblClient WHERE left(ClientName, 1) = lstAlpha.Text ORDER by ClientName”
set flxClient.DataSource = rs
rs.close
I get an error about wrong parameters. I think i’m not putting the right quotes or single quotes in the SQL stmt. Can someone lead me down the correct path. Thanks a log