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

How to update a table while the record is still open?

Hi All,

When a table is linked to a form, Access normally updates the entire table
when that record is closed. The fields don't get get updated in the table
as they become changed.

I've got multiple users accessing my database, so I need the fields in a
record to be updated immediately when they change. I cannot wait until the
user closes that record for the fields to be updated, as other users will
be using old data.

There must be a simple way to update the record fields as they get changed.
What am I missing here???

Thanks,
Norm
Nov 12 '05 #1
4 3137
Norm

me.dirty = true, or me.refresh will save a record. But if someone else
has the record open this will not be noted unless that form is
requeried or refreshed.

neil
Norm <od*****@comcast.net> wrote in message news:<Xn*******************************@216.196.97 .136>...
Hi All,

When a table is linked to a form, Access normally updates the entire table
when that record is closed. The fields don't get get updated in the table
as they become changed.

I've got multiple users accessing my database, so I need the fields in a
record to be updated immediately when they change. I cannot wait until the
user closes that record for the fields to be updated, as other users will
be using old data.

There must be a simple way to update the record fields as they get changed.
What am I missing here???

Thanks,
Norm

Nov 12 '05 #2
Thanks Neil!

What seems to be working well is if I do me.refresh whenever a field gets
the focus. The me.dirty automatically gets set to true. Is that the
typical way to handle this situation - to do a refresh on the getFocus
event?

Norm

ne***********@boroughmuir.edin.sch.uk (NeilAnderson) wrote in
news:83**************************@posting.google.c om:
Norm

me.dirty = true, or me.refresh will save a record. But if someone else
has the record open this will not be noted unless that form is
requeried or refreshed.

neil

Nov 12 '05 #3
Norm

I don't know about typical, but I use the requery method to reset a
combo box's recordsource based on various fields on a form on the
getFocus event a lot. The help file (access 97) says that a requery is
often faster than a refresh by the way - I've never noticed any
differnce!

Neil

Norm <od*****@comcast.net> wrote in message news:<Xn*******************************@216.196.97 .136>...
Thanks Neil!

What seems to be working well is if I do me.refresh whenever a field gets
the focus. The me.dirty automatically gets set to true. Is that the
typical way to handle this situation - to do a refresh on the getFocus
event?

Norm

ne***********@boroughmuir.edin.sch.uk (NeilAnderson) wrote in
news:83**************************@posting.google.c om:
Norm

me.dirty = true, or me.refresh will save a record. But if someone else
has the record open this will not be noted unless that form is
requeried or refreshed.

neil

Nov 12 '05 #4
Refresh and Requery are the opposite of each other.

Refresh updates the table(s) from the Form; Requery updates the Form
from
the table(s).

When a user enters data into a control on a Form, Refresh will send that
data
to the table. For another user to obtain the latest data from the
table, he/she
needs to use Requery.

To achieve the earliest update of new data, place Me.Refresh in the
AfterUpdate event of each control. Bit excessive but there is the least
delay.

If other users have that record open, they may need to do a Requery -
but will
they know when to do it??

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #5

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

Similar topics

0
by: Sue Adams | last post by:
I actually have two issues/questions: I have an autonumber field in an access db table that I grab and later use to update a record in another table withing the same db. The code I use to get...
4
by: Roy Adams | last post by:
Hi posting again because no answer to previous.. tring to loop through a recordset and update a record, thing is it only updates the first record in the table rather than searching through the...
1
by: mursyidatun ismail | last post by:
Dear all, database use: Ms Access. platform: .Net i'm trying to update a record/records in a table called t_doctors by clicking da edit link provided in the database. when i ran through da...
11
by: Siv | last post by:
Hi, I seem to be having a problem with a DataAdapter against an Access database. My app deletes 3 records runs a da.update(dt) where dt is a data.Datatable. I then proceed to update a list to...
5
by: PAUL | last post by:
Hello, I have 2 tables with a relationship set up in the dataset with vb ..net. I add a new record to the parent table then edit an existing child record to have the new parent ID. However when I...
4
by: Lada 'Ray' Lostak | last post by:
Hello there, I am thinking how to solve another typical problem of online systems with combination of thin client... Imagine simple case, 2 users are going to edit 'same' datas. Both see on the...
3
by: jpr | last post by:
Hello, I know that this is not the rule but need some help. My datbase has three tables: MASTER TEMPLATES FORMS I have a form which is based on a table named MASTER. I have a primary key...
1
by: teenagelcruise | last post by:
hi, i have a problem with my code which is i cannot update and addnew data into the database but i can delete the data.plz give me an idea.this is my code that i wrote. <html> <head> <meta...
2
by: sirdavethebrave | last post by:
Hi guys - I have written a form, and a stored procedure to update the said form. It really is as simple as that. A user can go into the form, update some fields and hit the update button to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.