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

subform requeries on command button press??

283 100+
Hi,

Ok what I have is a form where I built a search feature that runs a query when you press a search button. It works great but the results pop up in another window and im trying to make it so the results will pop up in the same window in a subform. I have a sub form already created and it seems to work when I select the information I want to find from a drop down box but for some reason i have to close the form and reopen the form to get it to requery. I want it to update or requery the sub form when I press a button in the main form, but every combination of code I can think of does not seem to be working. Any help on the matter would be great.

Thanks in advance.
May 13 '10 #1
3 3421
ADezii
8,834 Expert 8TB
@slenish
To Requery a Sub-Form from the Parent Form:
Expand|Select|Wrap|Line Numbers
  1. Me![<Sub-Form Control Name>].Requery
May 13 '10 #2
slenish
283 100+
Hi ADezii,

Thanks for the response. I am trying to get what you wrote to work but still having trouble. Where do i put the expression in the button onClick function? Also when you say sub-form control name do you mean just the name of the sub form or something else?

Thanks
May 17 '10 #3
ADezii
8,834 Expert 8TB
@slenish
Where do i put the expression in the button onClick function?
You can, among other Events.
when you say sub-form control name do you mean just the name of the sub form or something else?
The Name of the Sub-Form Control - not the Name of the Sub-Form contained within.
May 17 '10 #4

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

Similar topics

1
by: John Svercek | last post by:
On an aspx page, I notice when the page opens there is no default command button (press enter & nothing happens). However, once I set the focus on a text field one of the command buttons becomes...
1
by: Tim | last post by:
I have one main form that I use to view data as well as add new records. When I click the add new record button, many of the form's controls that arn't needed get set to invisible. When I'm done...
2
by: Colin | last post by:
I have a main form with a command button on it that when clicked, opens a subform displaying records that relate to the main form. I would like to disable the command button if the corresponding...
1
by: dmkeith2 | last post by:
I have a command button on my subform that I would like to run when the subform loads. Is there a way to run the command button that is in the subform automatically. Thanks
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
2
by: emc_cos | last post by:
I have a very nice parent child relationship happening between a main form and 8 subforms. The main form is the data entry point for a table that holds textual data like names, notes and the...
0
by: M G Henry | last post by:
I am using Access 2003 and have a form with two subforms on them. I would like to be able to use a command button to add the row of data ( 5 fields ) that are completed on the subform, as well as...
1
by: Chris | last post by:
I need a search form to perform. I have a Form and a subform. The subform is based off a query and the main form is unbound. The query runs perfect, however, I have a command button in the main...
2
by: darnnnel | last post by:
Hi everyone! I’m not sure how to even begin. I have a form and a subform and they are not linked. I would like to have a button on the form that would only change the data in the subform,...
6
by: Dan2kx | last post by:
Hello again... just a quicky (hopefully) How do you set a command button's "special effect" to be sunk... using VB code. i have 3 buttons that i want to "sink" the active button for the one...
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:
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
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
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
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,...

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.