473,388 Members | 1,376 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,388 software developers and data experts.

dblclick event

lee123
556 512MB
hey all i just wanted to ask if anyone knows how to do this, i want to be albe to dbl click in a subform to open up form with the same ID i have did this code but i can't seem to make it work

Expand|Select|Wrap|Line Numbers
  1. docmd.openform "joborderf",,,"Customerlsal=" & Customerlsal
or i have tried this:

Expand|Select|Wrap|Line Numbers
  1. docmd.openform "joborderf,,,"forms!customerf!customerlsal=" & Customerlsal
and this:

Expand|Select|Wrap|Line Numbers
  1. docmd.openform "joborderf",,,"forms!customerf!customerlsal=" & form.customerlsal
i don't understand if this can be done in a subform

lee123
Feb 27 '08 #1
4 1981
Stewart Ross
2,545 Expert Mod 2GB
Hi Lee. The syntax for referring to controls on a subform is Me![subformname].Form![controlname] (see Referring to Items on a Subform in the HowTo section of this forum at http://www.thescripts.com/forum/thread599404.html)

The first example DoCmd you gave was nearest correct. Try changing it to
Expand|Select|Wrap|Line Numbers
  1. docmd.openform "joborderf",,,"Customerlsal=" & Me![subformname].Form![Customerlsal]
replacing subformname with the name of your subform.

The criterion string in your second example was not correctly formed, and nor was the reference to the subform control in your third example.

-Stewart
Feb 28 '08 #2
lee123
556 512MB
hey thanks for getting back with me on this but the code you gave me to try didn't work. i also tried some of the ones that NeoPa provided on the link you gave me but no luck this is how i entered the code:

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "JobOrderF", , , "CustomerLsal=" & Me![paidsf].Form![CustomerLsal]
lee123
Feb 28 '08 #3
NeoPa
32,556 Expert Mod 16PB
Is your subform in a Tab control?
Feb 29 '08 #4
NeoPa
32,556 Expert Mod 16PB
One thing I'd suggest you do :
  1. Select the item named [paidsf].
  2. Check the Properties pane (Alt-Enter).
  3. Does the Properties pane title read "Subform/Subreport: paidsf"?
If NOT, then something's not quite as it should be. Remember, we're not talking about the .SourceObject property here but the .Name one.

Let us know how you get on.
Feb 29 '08 #5

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

Similar topics

2
by: Kim Cunningham | last post by:
I want to be able to dblclick on a combobox and pop up another form. The combobox is in dropdown mode. By default, dbl clicking on the combobox just selects the text. I need to override that. How...
3
by: MFC | last post by:
Hi I'm from Denmark so I hope you understand my English. Well, I have a filebox and when I click on a picture-file, then I have a small picturebox, where I can preview the file. When I...
5
by: David Deacon | last post by:
Hi i have the following code in a CustomerID field if the user enters a notinlist customer then they should dbl click to open the customer form However this error occurs "You tried to assign a...
0
by: Kim C | last post by:
I want to be able to dblclick on a combobox and pop up another form. The combobox is in dropdown mode. By default, dbl clicking on the combobox just selects the text. I need to override that. How...
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...
3
lwwhite
by: lwwhite | last post by:
(Access 2003) Here's what I want to do: enable users to double-click a field in a datasheet-view subform and thereby save the contents of that field to the Windows clipboard so that they can then...
10
by: Dave | last post by:
Access 2002...I need to open a popup at the location of a mouse dblclick. Can anyone help with this? I can get the mouse X & Y, but I'm not sure how to open a form in a specific location by code....
11
beacon
by: beacon | last post by:
Hi everybody, I have a double click event for a text box that will put a default value in it when fired. I'd like to be able to press 'Ctrl' + double click to put in a different value. I...
2
by: Dan2kx | last post by:
Hello, I have another problem to which i cannot figure out a resolution, I have a listbox on a form, on double click event of a row in the listbox i want to run some code, update tables etc...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.