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

Double-click in subform to open child form

2
Hello experts,

Sorry, this is probably a newbie-question...

I have a form for customer details, which includes a subform (datasheet, multiple columns) that lists the orders that correspond to that customer.

On the subform, I would like to define a double click event that opens a separate form with all details of a specific order (depending on the row in the subform on which the user double-clicked).

But I don't know what I should define the double-click event on. Should I define a double-click on each field (i.e. column)? Or is there an object for the entire row?

Your help would be greatly appreciated.
Aug 11 '07 #1
3 7642
Scott Price
1,384 Expert 1GB
Hello experts,

Sorry, this is probably a newbie-question...

I have a form for customer details, which includes a subform (datasheet, multiple columns) that lists the orders that correspond to that customer.

On the subform, I would like to define a double click event that opens a separate form with all details of a specific order (depending on the row in the subform on which the user double-clicked).

But I don't know what I should define the double-click event on. Should I define a double-click on each field (i.e. column)? Or is there an object for the entire row?

Your help would be greatly appreciated.
I think you'll be better off either changing your subform to a listbox using the same record source (listboxes recognize clicks, doubleclicks etc.) or to continuous form view instead of datasheet view. Continuous form view emulates (looks similar to) datasheet view, but allows also the click, doubleclick etc events. As far as I know datasheet view doesn't recognize those events.

The way I have done what you want to do before is to place a command button in continuous form view at the right of the record that opens the detail form on it's click event. It's fairly simple then to open the detail form using the OrderID number as the openargs setting to direct your order details form to the particular order you want to edit. (the idea with the command button instead of double click event is documenting the process for new users of your database, i.e. how are you going to tell them that doubleclicking on the field does anything? Not an impossible thing to do, just one that involves more work than simply placing an order details command button adjacent to the order record.)

Regards,
Scott
Aug 12 '07 #2
2myle
2
Thanks Scott,

I hadn't realized you could add buttons to continuous form views. That is indeed a more elegant solution for what I wanted to do, it's already working.

Not that the "new user" argument is a big concern to me; my wife is my only customer... ;-)

Muchas gracias,

Erik
Aug 12 '07 #3
Scott Price
1,384 Expert 1GB
Thanks Scott,

I hadn't realized you could add buttons to continuous form views. That is indeed a more elegant solution for what I wanted to do, it's already working.

Not that the "new user" argument is a big concern to me; my wife is my only customer... ;-)

Muchas gracias,

Erik
De nada, Erik...

Glad to help! Glad you got it working, too... You're lucky that your only customer is your wife :-) End users can come up with remarkably clever ways to get into trouble with something that to the developer thinks is as simple as 1 2 3!!

Regards,
Scott
Aug 12 '07 #4

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

Similar topics

12
by: Sydex | last post by:
When I compile code I get error C2664: 'Integration::qgaus' : cannot convert parameter 1 from 'double (double)' to 'double (__cdecl *)(double)' in this part : double Integration::quad2d(double...
20
by: Anonymous | last post by:
Is there a non-brute force method of doing this? transform() looked likely but had no predefined function object. std::vector<double> src; std::vector<int> dest; ...
31
by: Bjørn Augestad | last post by:
Below is a program which converts a double to an integer in two different ways, giving me two different values for the int. The basic expression is 1.0 / (1.0 * 365.0) which should be 365, but one...
10
by: Robert Palma | last post by:
I'm having trouble figuring out how to pass a pointer to a double array (1 dimensional) to a C function. Declaring array as: double xx; Declaring func. int process( double *input ) Calling...
3
by: BlueTrin | last post by:
I am using a DLL written in C, it uses some pointers on functions, I have defined a wrapper around it in C# which uses some delegates: #region Delegates and Marshalling to call solvopt public...
67
by: lcw1964 | last post by:
This may be in the category of bush-league rudimentary, but I am quite perplexed on this and diligent Googling has not provided me with a clear straight answer--perhaps I don't know how to ask the...
1
by: JWest46088 | last post by:
I keep getting these error messages: area(double,double) in Rectangle cannot be applied to () return "Area: " + Rectangle.area() + "\tCircumference: " + Rectangle.perimeter(); ...
2
by: dj10fld | last post by:
I am getting a (cannot convert double to double in assignment errors) here is a part of my code #include <iostream> #include <iomanip> #include <cmath> using namespace std; #define MaxSize...
10
by: ratcharit | last post by:
Currently using cosine function in math.h Currently I get: 1 = cos(1e^-7) Is there another way for cos to return value of high accuracy say: 0.999999 = cos(1e^-7)
2
by: Genro | last post by:
#include<stdio.h> #include<TX/graphics.h> #include<time.h> // I need help! struct Krug{ double _x; double _y; double _skox; double _skoy; double...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.