By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,188 Members | 832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,188 IT Pros & Developers. It's quick & easy.

dbl click

lee123
100+
P: 556
here is the senerio,

i have a form that has a field on it named (txtID) i want to be able to dbl click on it to open up another form with the same field (txtid) with that persons information. the form i have has an access database in the backend im using visual basic 6 as my front end i am using some ado controls on these forms that are conneting to the access database is this something i can do?

lee123
Jan 26 '08 #1
Share this Question
Share on Google+
13 Replies


lotus18
100+
P: 866
here is the senerio,

i have a form that has a field on it named (txtID) i want to be able to dbl click on it to open up another form with the same field (txtid) with that persons information. the form i have has an access database in the backend im using visual basic 6 as my front end i am using some ado controls on these forms that are conneting to the access database is this something i can do?

lee123
Hi lee

I have a sample program here on how to do that but not using an ado control. I don't use ado control for 2 years now (i think).

Rey Sean
Jan 26 '08 #2

daniel aristidou
100+
P: 491
here is the senerio,

i have a form that has a field on it named (txtID) i want to be able to dbl click on it to open up another form with the same field (txtid) with that persons information. the form i have has an access database in the backend im using visual basic 6 as my front end i am using some ado controls on these forms that are conneting to the access database is this something i can do?

lee123
Hi lee...
I havent done this in vb6 but in vb08 i have so ill just post a rough code outline for you...
Expand|Select|Wrap|Line Numbers
  1.  Private Sub Text_onclick() 
  2. form2.show()
  3. form2.dataset.REcordset.position = form2.dataset.REcordset.find = "txtid" & Textbox.Text
  4. End Sub
  5.  
Jan 26 '08 #3

lotus18
100+
P: 866
Hi lee...
I havent done this in vb6 but in vb08 i have so ill just post a rough code outline for you...
Expand|Select|Wrap|Line Numbers
  1.  Private Sub Text_onclick() 
  2. form2.show()
  3. form2.dataset.REcordset.position = form2.dataset.REcordset.find = "txtid" & Textbox.Text
  4. End Sub
  5.  
In vb6, you don't have to use () in showing a form. : )

Expand|Select|Wrap|Line Numbers
  1. form2.show
Rey Sean
Jan 27 '08 #4

Expert 5K+
P: 8,434
The OP also said they want to double-click.
Jan 27 '08 #5

daniel aristidou
100+
P: 491
The OP also said they want to double-click.
Ok....Chill
Was just an example

Daniel(~_~)
Jan 27 '08 #6

werks
100+
P: 220
Have you solved your problem?


Better Than Yesterday ^^
Jan 27 '08 #7

lee123
100+
P: 556
well actually no my problem still stands on how i can do this

lee123
Jan 27 '08 #8

Ali Rizwan
100+
P: 927
here is the senerio,

i have a form that has a field on it named (txtID) i want to be able to dbl click on it to open up another form with the same field (txtid) with that persons information. the form i have has an access database in the backend im using visual basic 6 as my front end i am using some ado controls on these forms that are conneting to the access database is this something i can do?

lee123
use this code

Expand|Select|Wrap|Line Numbers
  1. Private Sub txtID_DblClick()
  2.  
  3. 'Your code here
  4. msgbox "I am clicked twice"
  5.  
  6. End Sub
Regards
>> ALI <<
Jan 27 '08 #9

Expert 5K+
P: 8,434
Ok....Chill
Was just an example
No worries. That was just another way of saying... subscribing. :)
Jan 28 '08 #10

P: 68
Hi lee123,
I have written a VB6 program for your.
That is stored at link http://www.megashare.com/348049. If you want to try with my program you can download it.

If you satisfy, please reply.

Get better.

Regards,
SHuvo
Jan 28 '08 #11

Expert 5K+
P: 8,434
Sorry shuvo2k6, I've removed your e-mail address from the last post. Site posting guidelines prohibit the posting of personal contact info, to protect you from scammers and spammers who scan forums like this to find victims.

If people want to contact you they can click on your username to go to your profile, then select to send you an e-mail or a "private message" (PM) from there.
Jan 28 '08 #12

P: 68
Sorry shuvo2k6, I've removed your e-mail address from the last post. Site posting guidelines prohibit the posting of personal contact info, to protect you from scammers and spammers who scan forums like this to find victims.

If people want to contact you they can click on your username to go to your profile, then select to send you an e-mail or a "private message" (PM) from there.
Sorry Sir,
That type of fault will not occured in Future.
Jan 28 '08 #13

Expert 5K+
P: 8,434
Sorry Sir,
That type of fault will not occured in Future.
No problem. Like I said, it's to protect you.
Jan 28 '08 #14

Post your reply

Sign in to post your reply or Sign up for a free account.