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

Updating recordset for a subform

Hi all,
I've got two subforms on an unbound form, frmMain, frmSubOne, frmSubTwo.

Ive got a control on frmSubTwo, cboList, a list box, which draws its source
from the table underlying frmSubOne.
I want this list to be kept automatically up to date, for selection, so
after updating frmSubOne, the new records will be visible in the cboList box
when selected.

Here's what im doing, but it is giving inconsistent results.

on the CurrentEvent of frmSubTwo,
me.cbo.requery
me.refresh.

Think my problem is I don't fully understand how the current and activate
events work on a subform!.
As usual any advice / guidance most welcome.

Gerry Abbott

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/03
Nov 12 '05 #1
1 2569
False alarm, Problem solved.

I found the cause, and it was not related to the forms, but relationships
which i had set up between the underlying tables. The tables were connected
with an inner join with data integrity set. I replaced this with an
appropriate outer join, and all is well now.

Gerry Abbott


"Gerry Abbott" <pl****@ask.ie> wrote in message
news:ru****************@news.indigo.ie...
Hi all,
I've got two subforms on an unbound form, frmMain, frmSubOne, frmSubTwo.

Ive got a control on frmSubTwo, cboList, a list box, which draws its source from the table underlying frmSubOne.
I want this list to be kept automatically up to date, for selection, so
after updating frmSubOne, the new records will be visible in the cboList box when selected.

Here's what im doing, but it is giving inconsistent results.

on the CurrentEvent of frmSubTwo,
me.cbo.requery
me.refresh.

Think my problem is I don't fully understand how the current and activate
events work on a subform!.
As usual any advice / guidance most welcome.

Gerry Abbott

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/03

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/03
Nov 12 '05 #2

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

Similar topics

0
by: CSDunn | last post by:
Hello, In Access ADP's that connect to SQL Server databases, any time I have a situation where I have a combo box in a main form that looks up a record in a subform, the subform record source has...
0
by: CSDunn | last post by:
Hello, In Access ADP's that connect to SQL Server databases, any time I have a situation where I have a combo box in a main form that looks up a record in a subform, the subform record source has...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
4
by: Macbane | last post by:
Hi, I have a 'main' form called frmIssues which has a subform control (named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs. A control button on the main form opens a pop-up form...
1
by: canam | last post by:
I hope someone can help me with this. I have an input form with a subform that opens up in data sheet view. The subform is called based on 2 fields - BusinessName & Commodity - in other words...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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,...

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.