sueb 379
Contributor
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".)
2 3426
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.
sueb 379
Contributor 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!
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 maybe even just declare an interface, with
no methods implemented). Right now, you don't really have a way to do
it. You can leave the methods with a...
|
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 main form is
reactivated following opening and closing a modal form. Strangely,
this was not a problem until I started using my Access 2000 db in...
|
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 click a
button on a pop-up window the javascript for that button click does a
'button.form.submit'. On the Server side there is a Button click...
|
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 user to select from menu options. Some of the
menus allow the user, via an options form, to select parameters for the
display of reports. Those...
|
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 of the form which is
submit and cancel. After i have clicked submit, the information is
stored directly into my corresponding database table. My...
| |
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 Orders detail table
One of the fields in this contiuous form is the Order ID. When a user clicks on the order ID, i want them to see the full...
|
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.
It seems the simplest thing is to run the code (see below) once with
the detail section showing, and a second time hiding the detail
section. I...
|
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 base component
does NOT have a Load event as far as i can ascertain.
What I need is to have a self-check function called when the component
loads....
|
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 W3C HTML 4.01 standard and this group's archive didn't give me a
satisfactory answer, so here we go:
Is <img src="img.png" alt="" width="100px"...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |