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

Requerying subforms in tab controls

I currently have a query that is joining two distinct pools of
information and turning them into one records with a unique identifier
This query is dependent on criteria passed from a form in a number of
text and combo boxes. This part of the form works fine.

On Open a Tab control is displayed but the subforms in each of the
three tabs are hidden until the required info is gathered from the
user. The subforms are then displayed, emphasis given to the first
tab which can display a number of records. What I want this tab
control to do is display the other tabs, the information pertaining
only to the record selected in the first i.e. setting some kind of
filter to say that [ID2]= Forms!MainForm!Subform.Form!Control.

I have tried this in two ways, neither of which have been completely
successful. The first tab is based on the same query as the main form
and returns all the records that match. The second tab is based on
the same query with a filter something like that above - no joy.

Secondly I replicated the query and merely added and additional query
like the filter above. This does produce the required result for the
subform cannot be requeried so as users flick through the available
records on the first tab, the second tab remains on the initial record
unless Shift+F9 is used.

I have tried The Requery Statement Forms!Mainform!Subform.Form.Requery
is the OnCurrent event of the first tab, the AfterUpdate event of a
control on this tab, the onCick event of the second tab top and
finally I tried passing the ID to a text box in the main form and then
requerying on the AfterUpdate event of this control - nothing
requeries the form other that Shift+F9. So I tried the Send Keys
commands on all of the above Events and again nothing.

I an absolutely 100% stumped and about 5 minutes away from scrapping
and starting again. Hopefully someone has some dawning inspiration.

P.S I have tried experimenting with the syntax of both the Requery
statement and filter but according to both here and the help, as is
should be fine.

Thanks in advance for any help

Jenni
Nov 12 '05 #1
0 1952

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark Kola | last post by:
I have ran into an interesting situation. I have a calculated field based on a combobox column that somtimes is not requerying when I change the combo box value. Combobox cboCustomer 2...
0
by: Jenni | last post by:
I currently have a query that is joining two distinct pools of information and turning them into one records with a unique identifier This query is dependent on criteria passed from a form in a...
6
by: Steve | last post by:
I have a form, primary subform and secondary subform. A tab control takes up all the area of the primary subform. There are about 15 tabs on the tabcontrol. Each tab contains fields from the same...
1
by: MDM | last post by:
I have a list box control that is bound to a query. The form is not bound to any source since I have a few list boxes from different sources. When the form opens the list box is populated...
8
by: Dimitri Furman | last post by:
Given: Access 2002/2003 A subform in datasheet or continuous view, placed on a tab page (this last may or may not matter) Conditional formatting applied to some controls on the subform - format...
7
by: lauren quantrell | last post by:
A while back I got a requirement for the client to be able to adjust the relative heights of two subforms by click-dragging the mouse and I came up with a kludge solution using a border control...
1
by: Paddy | last post by:
Dear forum, In my database, I have one instance where a specific collection of 7 forms are expected all at one time, so I tried to build an entry screen where the entry form for each individual...
2
by: robert.waters | last post by:
Hello, If I have a form containing a Tab Control with N pages, each page containing a subform, are those subforms loaded into memory when another page has the focus? I have tried iterating...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform relates to the main form using an identity key (this works). The second subform relates to both the main and first subform. But I want to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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...

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.