473,439 Members | 5,055 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,439 software developers and data experts.

How to open a "detail" form from a "summary" form

sueb
379 256MB
I have a new single-table database (it hasn't been released to the users at all yet) in which I've created two forms that look at the same data: one form which has a spread-sheet-like format, and displays a few fields for all the records in the table, and another form that displays all the fields for a single record at a time. I'd like to be able to have a button on the summary form that opens the detail form for the particular record selected (and it's all right if the detail form allows paging through other records).

I'm uploading the database, if that helps. I haven't yet split the front/back ends, so it's just in one file, and the uploaded version contains dummy data.

(Edit: You'll see that I already tried to do this using code similar to what works for a parent/child table arrangement, but since this is a single table, I didn't know the sytax for "simply open another form for this same record".)
Attached Files
File Type: zip SOCIAL WORK CONTACTS.zip (391.3 KB, 154 views)
Dec 15 '10 #1

✓ answered by munkee

Sueb,

This is really easy once you know how and to be honest you were very close on your attempt.

To do this go to your overview form in desing view.

Ensure you have the control bar up so you can add buttons etc.

Make sure you have the magic wand selected so control wizard will be used whenever you place a button.

Place a command button exactly as you have with the"+" signs on.

The control wizard will pop up.

Select to open a form from the form operations menu.

You will be asked what you would like the button to open, select "Contact Details".

You should then change the option button to "Open the form and find specifc data to display".

Now you are presented with two columns showing fields from each of the forms. From what I can see the one field which definitely will link the two forms together in some form of relationship is the "Patiend MR #". So select both of these in each column. Then ensure you click the "<->" button in the centre of the two columns. This will display the relationship at the bottom.

From here select how you want the button to be displayed to suit yourself.

Then select a suitable name for the button such as cmdDetail and then finish.

Sorry if the explenation is not great, I have also uploaded your database edited with the code working.

2 3420
munkee
374 256MB
Sueb,

This is really easy once you know how and to be honest you were very close on your attempt.

To do this go to your overview form in desing view.

Ensure you have the control bar up so you can add buttons etc.

Make sure you have the magic wand selected so control wizard will be used whenever you place a button.

Place a command button exactly as you have with the"+" signs on.

The control wizard will pop up.

Select to open a form from the form operations menu.

You will be asked what you would like the button to open, select "Contact Details".

You should then change the option button to "Open the form and find specifc data to display".

Now you are presented with two columns showing fields from each of the forms. From what I can see the one field which definitely will link the two forms together in some form of relationship is the "Patiend MR #". So select both of these in each column. Then ensure you click the "<->" button in the centre of the two columns. This will display the relationship at the bottom.

From here select how you want the button to be displayed to suit yourself.

Then select a suitable name for the button such as cmdDetail and then finish.

Sorry if the explenation is not great, I have also uploaded your database edited with the code working.
Attached Files
File Type: zip SOCIAL WORK CONTACTS_2010-12-15.zip (29.8 KB, 106 views)
Dec 15 '10 #2
sueb
379 256MB
munkee, the explanation was GREAT! perfectly clear and easy to follow, and exactly what I needed. Especially because now I know how that code I tried to modify was created--thanks a million!
Dec 16 '10 #3

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

Similar topics

51
by: Noam Raphael | last post by:
Hello, I thought about a new Python feature. Please tell me what you think about it. Say you want to write a base class with some unimplemented methods, that subclasses must implement (or...
5
by: will eichert | last post by:
Greetings. I have a problem with a combo box incorrectly displaying blank items when returning to a form from a modal form. It's fine when the main form first comes up, but gets messed up when the...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
5
by: mabond | last post by:
Hi all This question is one of "theory" rather than a search for the specifics of a solution. I need some pointers as to how to proceed with my project. Here goes. My application allows the...
13
by: kev | last post by:
Hi all, I have created a database for equipments. I have a form to register the equipment meaning filling in all the particulars (ID, serial, type, location etc). I have two buttons at the end...
4
by: awcem | last post by:
I am working with Microsoft access 2003 i have a continuous form which shows summary date for purchase orders. This form is based on a query which looks at the Purchase Orders table and the Purchase...
10
by: sara | last post by:
Hi - Is it possible to hide the detail section of a report at run time? I have a report that prints all details, with summary lines. The user would like the report ALSO with just summary lines....
2
by: ZBINContact | last post by:
I am creating a self-checking set of usercontrols. They tend to call their self-checking functionally in the "Load" event. I have run into a problem with my TextBox usercontrol, however, as the...
7
by: Christian Hackl | last post by:
Hi everyone, I've got a question about what makes the "img" element's width/height attributes valid HTML or XHTML. First of all, this is a rather theoretical question, but digging through the...
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...
1
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...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.