473,405 Members | 2,379 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,405 software developers and data experts.

Click a button and search a query based on item in datasheet

I'm building an access database for a mortgage portfolio. Our properties can have prior mortgage charges against specific properties.

I've created an "add charge" & "view charge" button in one of my subforms. "Add charge" obviously opens up a new dialogue box and allows you to input a mortgage against a property and register it.

I want the "view charge" button to open a query (that is already built) to search for the property in the datasheet.

for example: 123 Fake st has 6 separate charges against it, when I click "view charges" a dialogue box should appear showing all charges against it.
May 2 '16 #1
1 1104
zmbd
5,501 Expert Mod 4TB
Normally I would suggest a subform arrangement

For example, the following image show the Parent form, a child form and a grandchild form. I've linked the two subforms togeither using an unbound textbox control that derives it's value from the child subform. Normally the textbox control is hidden; however, for this example I've left it visible.

I've also included the FK_Fields in each subform so that you can see how the records are related between the forms and underlying tables *(opps, didn't show the parent key in the child subform; however, I think you get the idea between the child and the grandchild subforms.)

At work I have an Unbound form with three subforms. The subforms are linked using that same textbox control idea linking the three forms together.


The advantage here is that you don't need code to enter the related records (ie I can enter a grandchild and Access will take care of the related fields - OF COURSE, I have the related fields as part of the form's recordset even if they are not shown on the form) nor to have the two subforms sync due to the link-master-field for the grandchild subform referring to the unbound textbox.
If you really want the pop-up we can work thru that...
Attached Images
File Type: jpg Parent_Child_GrandChild_Subform.jpg (38.3 KB, 784 views)
May 2 '16 #2

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

Similar topics

1
by: edself | last post by:
I have a form which displays a subform datasheet of information. I'd like to be able to quickly click on a particular record and open up another form showing more detailed information about that...
1
by: Matthew | last post by:
Hey, I have built a form that has certain combo and text boxes on it, which a user specifies his criteria and then clicks on a search button to run a query based on that criteria. To build to...
0
by: [Yosi] | last post by:
I search solution for a little bit strange problem , I working on an application which includes a button. Click on this button will create number of threads each one execute deferent executable...
5
by: Steve | last post by:
Hi, Is it possible to make hitting the enter key in an ASP textbox run the code behind an ASP button on a form? I have a search page which users tend to type in the query then just hit enter...
1
by: Christina123 | last post by:
All: I have a database that tracks the withdraws and returns of shared tools. It has been requested that the datablase is made able to show all orders based on a date range. My orders only...
2
by: tirath | last post by:
hi, I have a web site where user provide some search criteria and click on button "Search". I want to provide a "Cancel" button which user can click. In case search takes long, user clicks on...
2
by: scolivas | last post by:
I would like to make a form that creates a query. I know that I could make a query for each radio button instance but that would take forever! So basically what i have is 10 Fields in a query ...
6
by: thetaamommy | last post by:
Hi All I have a search webpage with 10 textboxes, like customerid, customername, costcenter, business, zipcode , etc. Now the user can enter any of the values or all of the values or none of...
3
by: mandeep gill | last post by:
how to open table on button click with search creteria passed? i have a form with two text boxes for search according to name and phone number . i am opening a table on click of button. i...
6
by: amwkl4 | last post by:
Hi all, The program I am using is Microsoft Access 2010. I have a search form set up where I can type criteria in a textbox (Changed named to Keyword) and press a button to run a query. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
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
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
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.