473,320 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

dbl click

lee123
556 512MB
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
13 1641
lotus18
866 512MB
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
491 256MB
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
866 512MB
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
Killer42
8,435 Expert 8TB
The OP also said they want to double-click.
Jan 27 '08 #5
daniel aristidou
491 256MB
The OP also said they want to double-click.
Ok....Chill
Was just an example

Daniel(~_~)
Jan 27 '08 #6
werks
220 100+
Have you solved your problem?


Better Than Yesterday ^^
Jan 27 '08 #7
lee123
556 512MB
well actually no my problem still stands on how i can do this

lee123
Jan 27 '08 #8
Ali Rizwan
925 512MB
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
Killer42
8,435 Expert 8TB
Ok....Chill
Was just an example
No worries. That was just another way of saying... subscribing. :)
Jan 28 '08 #10
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
Killer42
8,435 Expert 8TB
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
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
Killer42
8,435 Expert 8TB
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

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

Similar topics

4
by: Csaba2000 | last post by:
I want to be able to programatically click on the center of an <INPUT type=image ...> element (I only care about IE 5.5+). This should work regardless of whether IE has focus. Normally you would...
7
by: Paul Cooper | last post by:
Dear All, I am working on a piece of Javascript code that needs to detect a mouse-click, shift-click and control-click. The code is not my own - it is a part of a much larger suite of routines....
11
by: Thom Little | last post by:
I would like three states on an icon ... Left Click Right Click Double Click Left Click is fired at least once on a Double Click Is there a good example that shows how to determine if the...
5
by: J McD | last post by:
Hi I have a DataGrid with an ImageButton column. When I click on an imagebutton I get a postback but it doesn't run the OnImgBtnClick method. I can actually comment out the line where I add this...
11
by: Terry Olsen | last post by:
How can I catch a right-click on a DropDownMenuItem?
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
15
by: cj | last post by:
I would like to have menu items a main menu bar that represent the days of the week. When you click on them they alternate from checked to unchecked. Right now I have 7 subs that look like this...
3
by: | last post by:
I have a control that need to perform one behavior when it's Clicked and a different behavior when it's DoubleClicked. It seems that you can't get a DoubleClick without first getting a Click. So...
5
by: Xu, Qian | last post by:
Hello All, I have some problem by simulating a link click using javascript. The webpage uses a js-library named interface (jQuery like) ------------------------------ <a id="foo" href="#">Try...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.