vaurdan Posted February 19, 2006 at 04:41 PM Report Share #14633 Posted February 19, 2006 at 04:41 PM Oi tou com um prob neste code: Option Explicit Global DBenc As Database Global etiqueta As String Global tblpes As Recordset Global tblami As Recordset Sub abrirBD() Set DBenc = OpenDatabase("c:\projectos\tutoriais\amigos.mdb") Set tblpes = DBenc.OpenRecordset("pessoal") Set tblami = DBenc.OpenRecordset("amigos") End Sub Sub fecharBD() tblpes.Close tblami.Close DBenc.Close End Sub os a bold é o ke dá probs aparece: ' Compile Error: User-Defined type not defined' Tou a fazer uma agenda i isto é um Module. Obrigado http://www.neopt.org <- O meu blog xD Link to comment Share on other sites More sharing options...
vaurdan Posted February 27, 2006 at 03:42 PM Author Report Share #15767 Posted February 27, 2006 at 03:42 PM olhem ng responde? http://www.neopt.org <- O meu blog xD Link to comment Share on other sites More sharing options...
vbmaster Posted February 27, 2006 at 04:36 PM Report Share #15773 Posted February 27, 2006 at 04:36 PM não sei nada de bd's Link to comment Share on other sites More sharing options...
vaurdan Posted February 27, 2006 at 04:51 PM Author Report Share #15776 Posted February 27, 2006 at 04:51 PM lol, isso é mau pa mim... XD http://www.neopt.org <- O meu blog xD Link to comment Share on other sites More sharing options...
Tiago Salgado Posted February 27, 2006 at 05:17 PM Report Share #15778 Posted February 27, 2006 at 05:17 PM Porque não usas o ADODC ?? É só adicionares o componente Microsoft ADO Data Control e depois fazes: Private Sub DB() Dim strPath As String strPath = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=CAMINHO_DA_BASE_DE_DADOS;Persist Security Info=False" Adodc1.ConnectionString = strPath End Sub Private Sub Command1_Click() Adodc1.RecordSource = "Select count(*) from login" Adodc1.Refresh Se quiseres optar por este método e tiveres alguma duvida avisa que tento esclarecer-te ...tens outras maneiras mas esta parece-me ser a mais simples Link to comment Share on other sites More sharing options...
vaurdan Posted February 27, 2006 at 05:52 PM Author Report Share #15788 Posted February 27, 2006 at 05:52 PM eu tou a seguir um tutorial dum site... por isso é k nao sabia essa maneira XD eu falo contigo por pms http://www.neopt.org <- O meu blog xD Link to comment Share on other sites More sharing options...
Tiago Salgado Posted February 27, 2006 at 06:14 PM Report Share #15790 Posted February 27, 2006 at 06:14 PM É melhor falares aqui, assim outro utilizador com a mesma duvida ja fica esclarecido. Link to comment Share on other sites More sharing options...
deathseeker25 Posted February 27, 2006 at 06:18 PM Report Share #15791 Posted February 27, 2006 at 06:18 PM Boas, Só um pequeno reparo vaurdan. No título do tópico tenta ser mais explícito sobre o que é a dúvida. Assim quando outros utilizadores pesquisarem por uma determinada palavra chave, o teu tópico aparece em primeiro se contiver essa palavra no título... Cumps Link to comment Share on other sites More sharing options...
vaurdan Posted February 27, 2006 at 06:45 PM Author Report Share #15802 Posted February 27, 2006 at 06:45 PM podias modar o nome do topico sff? http://www.neopt.org <- O meu blog xD Link to comment Share on other sites More sharing options...
deathseeker25 Posted February 27, 2006 at 07:02 PM Report Share #15805 Posted February 27, 2006 at 07:02 PM podias modar o nome do topico sff? Já modifiquei. 👍 Link to comment Share on other sites More sharing options...
Tiago Salgado Posted February 27, 2006 at 09:22 PM Report Share #15850 Posted February 27, 2006 at 09:22 PM vaurdan já conseguiste atinar com isso ? Link to comment Share on other sites More sharing options...
joninho Posted February 27, 2006 at 09:59 PM Report Share #15865 Posted February 27, 2006 at 09:59 PM lol tou a ver k o vaurdan ta a atinar com o VB6 😄 lol sim senhor 👍 Link to comment Share on other sites More sharing options...
Tiago Salgado Posted February 27, 2006 at 11:38 PM Report Share #15891 Posted February 27, 2006 at 11:38 PM Não é complicado atinar com VB6, basta haver algum esforço 👍 Link to comment Share on other sites More sharing options...
joninho Posted February 27, 2006 at 11:49 PM Report Share #15895 Posted February 27, 2006 at 11:49 PM Yah... 😄 lol eu agr ando bueh ocupado senao ja tinha marrado ene nisso 😛 lol Cumps... PS: Vaurdan continua assim 👍 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