axt3k Posted November 9, 2007 at 01:51 PM Report Share #146316 Posted November 9, 2007 at 01:51 PM Gostava de saber como se faz para ir escrevendo o nome de uma string contida na BD de forma a ir listando consoante os caracteres que estou a escrever todos os nomes começados por esses msm caracteres e listarme na combobox de maneira a poder escolher... Resumindo quero escrever por exemplo "Ana" e na cambobox aparecerem todos os nomes comecados por ana ou seja ana, anabela etc... de maneira ao utilizador poder escolher de entre os nomes listados!... 😞 www.lsantos.info Link to comment Share on other sites More sharing options...
Asgorath Posted November 9, 2007 at 03:43 PM Report Share #146339 Posted November 9, 2007 at 03:43 PM Boas. Mete isto dentro de sqlcommand. select * from NomeTabela where campo1 like 'ana%' "The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod Link to comment Share on other sites More sharing options...
andre86 Posted July 22, 2008 at 03:47 PM Report Share #200764 Posted July 22, 2008 at 03:47 PM Boas. Mete isto dentro de sqlcommand. select * from NomeTabela where campo1 like 'ana%' boas eu keria fazer a mesma coisa mas n percebi o que disses-te para fazer....ao k me parece o k dizes e ir á BD fazer isso......eu ja tenho a combobox preenchida e keria a medida k escrevesse uma letra ela fosse apresentado os nomes começados por essa letra etc... Link to comment Share on other sites More sharing options...
Ivo Pereira Posted July 22, 2008 at 05:03 PM Report Share #200774 Posted July 22, 2008 at 05:03 PM Metes quando for alterado numa textbox o seu conteúdo, para ir executando o comando de acordo com o que está na textbox. Link to comment Share on other sites More sharing options...
Ivo Pereira Posted July 25, 2008 at 02:18 AM Report Share #201202 Posted July 25, 2008 at 02:18 AM Olha, estou a utilizar isto agora num programa que estou a fazer com bases de dados, e digo-te, funciona às mil maravilhas 😛 Link to comment Share on other sites More sharing options...
andre86 Posted July 25, 2008 at 09:57 AM Report Share #201220 Posted July 25, 2008 at 09:57 AM boas ok thanks ja resolvi cumps 😛 Link to comment Share on other sites More sharing options...
Ivo Pereira Posted July 25, 2008 at 12:34 PM Report Share #201236 Posted July 25, 2008 at 12:34 PM Na boa 😛 Olha, para uma melhor organização do forúm acrescenta [RESOLVIDO] no início do título do teu tópico 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now