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

Cascade changed data in open forms

What are some of the methods you guys have used to update data in forms
that has been changed by another open form? For example I might open
an form to edit an employee, and when I close it I would want to update
any comboboxes or listboxes that might contain a list of employees. In
MS Access I used to handle this by looping through all open forms, then
looping through all listbox or combobox controls and calling their
..requery method. I'm writing a new app in VB 2005 and was
brainstorming some ways to handle my data syncing needs. I want to do
something that is reusable throughout the app. For the example above I
know that I can explicitly update the controls, and I could even limit
this to happen only if that specific form is open. However I want a
system where i can call a sub and it knows if any open forms need to be
'refreshed'. Maybe I could keep some sort of control collection with
control names and the nature of the data that they hold. Any
suggestions to get me started?

Apr 13 '06 #1
1 1360
Bryan wrote:
What are some of the methods you guys have used to update data in forms
that has been changed by another open form? For example I might open
an form to edit an employee, and when I close it I would want to update
any comboboxes or listboxes that might contain a list of employees. In
MS Access I used to handle this by looping through all open forms, then
looping through all listbox or combobox controls and calling their
.requery method. I'm writing a new app in VB 2005 and was
brainstorming some ways to handle my data syncing needs. I want to do
something that is reusable throughout the app. For the example above I
know that I can explicitly update the controls, and I could even limit
this to happen only if that specific form is open. However I want a
system where i can call a sub and it knows if any open forms need to be
'refreshed'. Maybe I could keep some sort of control collection with
control names and the nature of the data that they hold. Any
suggestions to get me started?

Bind the controls to the dataset. When you update in one form, the
other form will already have the updated data.

Tom
Apr 13 '06 #2

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

Similar topics

0
by: Fraser Hanson | last post by:
Hello, I have a table which has a foreign key relationship with itself. I want and expect my updates to cascade (deletes definitely cascade as expected) but instead I just get error 1217:...
1
by: Andrew DeFaria | last post by:
I created the following .sql file to demonstrate a problem I'm having. According to the manual: If |ON DELETE CASCADE| is specified, and a row in the parent table is deleted, then InnoDB...
33
by: Lee C. | last post by:
I'm finding this to be extremely difficult to set up. I understand that Access won't manage the primary key and the cascade updates for a table. Fine. I tried changing the PK type to number and...
3
by: hilz | last post by:
Hi all I am trying to create a relation between two tables. this is the sql statement in question alter table T1 add constraint relation_T1_to_T2 foreign key (T2_ID) references T2 (ID) on...
7
by: Aaron Smith | last post by:
Is there a way to do this safely? I'm using MSDE and have two tables that are linked via 3 fields. If one of those fields change, I need the update to cascade through the child file. There is a...
12
by: daniel | last post by:
Hi All, I have a form and VB code in Access. The code is like With rs .Edit !Field = 10 .Update End With
3
by: blakerrr | last post by:
Hello World! I'm a rookie with access and my green skin needs a little help. I have two tables, one called BOM and one called Junction. BOM contains parts and assemblies and subassemblies info and...
10
by: Cliff72 | last post by:
Is there a way in VBA to check if a linked table in the database has been updated? Example: I have a table "LedgerTemp" which is a direct link to a text file on the LAN "Ledger.txt" This text...
6
by: yltang | last post by:
I am working on an order system. The following are the tables and forms. (A) Tables: tblOrder: OrderID (PK), CustomerID tblOrderDetail: OrderID (PK), ProductID tblProduct: ProductID (PK),...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.