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

Refresh Form Bound table in VBA help

Hi
Background info:
I am running Access 2000
I have a form bound to a blank table
When a user clicks a button the form opens in datasheet view
User enters data into form and closes form
User clicks button which then creates an inner join between form bound
table and master table and updates records in master table where values

are equal to form bound table
My problem is that when the form is closed Access does not recognise
that there is data in the bound table, I have tried refreshing the
tabledef to no avail

Can anyone help?
Regards
Kay

Sep 26 '06 #1
3 6175

"KayC" <ka******@yahoo.co.ukschreef in bericht news:11**********************@i42g2000cwa.googlegr oups.com...
Hi
Background info:
I am running Access 2000
I have a form bound to a blank table
When a user clicks a button the form opens in datasheet view
User enters data into form and closes form
User clicks button which then creates an inner join between form bound
table and master table and updates records in master table where values

are equal to form bound table
My problem is that when the form is closed Access does not recognise
that there is data in the bound table, I have tried refreshing the
tabledef to no avail

Can anyone help?
Regards
Are you sure the data is still in the table after closing the form ??
Check: Can you see the records when opening the table??

If you can see them, Access can also ....
I guess 'something else' is wrong.

Arno R

Kay
Sep 26 '06 #2
You lost me at "Background info:"

1. Why is the table blank? Is it some sort of temporary data container
that is populated by the form you mention, then has its data
transferred elsewhere, and finally all records deleted?

2. What's up with the dynamic relationship settings? Why not just
define the relationship as a left or right to achieve what you need and
skip the coding of the relationships?

Somehow the data in that table is getting deleted or the update to the
underlying table is never happening. It's possible that Access
encounters an error when the form is closed and never saves the data in
the modified record.

More details, please...

KayC wrote:
Hi
Background info:
I am running Access 2000
I have a form bound to a blank table
When a user clicks a button the form opens in datasheet view
User enters data into form and closes form
User clicks button which then creates an inner join between form bound
table and master table and updates records in master table where values

are equal to form bound table
My problem is that when the form is closed Access does not recognise
that there is data in the bound table, I have tried refreshing the
tabledef to no avail

Can anyone help?
Regards
Kay
Sep 26 '06 #3
Hi Arno, Jamey
That is correct the table is a temporary one (used as temp mapping
table) to update Master table
I think you guys are right... must be some action connected to the form
event
I will take a look
Thanks
Kay

Jamey Shuemaker wrote:
You lost me at "Background info:"

1. Why is the table blank? Is it some sort of temporary data container
that is populated by the form you mention, then has its data
transferred elsewhere, and finally all records deleted?

2. What's up with the dynamic relationship settings? Why not just
define the relationship as a left or right to achieve what you need and
skip the coding of the relationships?

Somehow the data in that table is getting deleted or the update to the
underlying table is never happening. It's possible that Access
encounters an error when the form is closed and never saves the data in
the modified record.

More details, please...

KayC wrote:
Hi
Background info:
I am running Access 2000
I have a form bound to a blank table
When a user clicks a button the form opens in datasheet view
User enters data into form and closes form
User clicks button which then creates an inner join between form bound
table and master table and updates records in master table where values

are equal to form bound table
My problem is that when the form is closed Access does not recognise
that there is data in the bound table, I have tried refreshing the
tabledef to no avail

Can anyone help?
Regards
Kay
Sep 27 '06 #4

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

Similar topics

2
by: Iain Miller | last post by:
Struggling a bit here & would be grateful for any help. I have a table which has a list of people in it. Each person has a unique ID automatically allocated by Access but also belongs to one of 5...
6
by: LSemos | last post by:
I am trying to lookup phone numbers in a separate table based on the name in the current Tab control tblContacts has the fields: Name, Phone, Fax, and Email In my Form's Tab control, I have...
2
by: Matthias | last post by:
Hi Team this may be a newbie question. I have searched the discussions before posting: I'd like to re-use a form instance to edit record details. My data binding (a DataTable bound to...
2
by: Bryan Shaw | last post by:
I have a Windows app I am developing in VS .NET 2005 that is required to periodically look at the data in a table in an MS SQL 2000 database. The data is being changed from an external stored...
6
by: MLH | last post by:
I don't always get what I want when I invoke the following Me!MySubFormControl.Refresh from code running in the main form. Am I doing something wrong here? Someone suggested that I open the...
3
by: David Cartwright | last post by:
Hi all, I'm having a weird time with a call to the Refresh() method of a DataGridView. I have a VB.NET 2005 Windows application with a main form and a "worker" thread. The main form delegates a...
2
NeoPa
by: NeoPa | last post by:
CHAPTER 1 - TABLE OF CONTENTS (Including attached database) CHAPTER 2 - INTRODUCTION CHAPTER 3 - TABLE LAYOUT CHAPTER 4 - FORM LAYOUT CHAPTER 5 - FORM MODULE CHAPTER 6 - CODE DISCUSSION (FILTER...
7
by: Randy | last post by:
Hi, I've got a listbox on a form that gets updated by opening another form for data entry. Once the user enters the new item name and clicks "accept", the data entry form closes and the original...
6
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi - I'm having trouble refreshing a datagrid control bound to a dataset that was created from the New Data Source wizard. What is the code required to refresh the datagrid with data from the...
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
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,...
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.