Simon_Uk
11-29-2002, 04:47 AM
Hi,
Im using Access2000 and am tring to run a veriety of database inserts and retievals through my own vb code. I am using the default version of visual basic that comes with access when required to add my code to form buttong and would like to know how i can make my own button that can query a record in the database called Candidate and return a value from the candidateId & candidateName column, and then store these value in variables. I would also like to have a button that can insert a value of bob into CandidateName (still using the candidate table!)
I have found some code the last fuction, using the doCmd.RunSql(AQuery) - but this is not very suitable as everytime i run it, it promts me with - do you want to add a new row etc.
Another thing is that I do not want to install any extra add ins as this access file should be able to run on several computers without confusing the users.
I have done this before making a seperate application exe file in visual basic 6, but as I said, im using the vbcode within access2000 form builder.
Thanks for your help!
Im using Access2000 and am tring to run a veriety of database inserts and retievals through my own vb code. I am using the default version of visual basic that comes with access when required to add my code to form buttong and would like to know how i can make my own button that can query a record in the database called Candidate and return a value from the candidateId & candidateName column, and then store these value in variables. I would also like to have a button that can insert a value of bob into CandidateName (still using the candidate table!)
I have found some code the last fuction, using the doCmd.RunSql(AQuery) - but this is not very suitable as everytime i run it, it promts me with - do you want to add a new row etc.
Another thing is that I do not want to install any extra add ins as this access file should be able to run on several computers without confusing the users.
I have done this before making a seperate application exe file in visual basic 6, but as I said, im using the vbcode within access2000 form builder.
Thanks for your help!