Solved

True DBGrid 7 + Multiuser + Refresh Data

Posted on 2003-10-23
5
602 Views
Last Modified: 2013-12-25
Hello
 
I have a problem with True DBGrid 7 (and also with the 8 evalution version) :
When more then one user use the grid (wich is linked to an Access DB with a
"Data" control) to add data, there are some refresh problems.
The "AddNew" row below the last data row in the grid has information that has
been entered from another user on a different PC.
 
Is there a way to solve the problem ?
 
Regards,
 
Fabian
0
Comment
Question by:PROMISYS
5 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 134 total points
ID: 9605031
To be honest, i NEVER use grids to let the user change data (add, delete, update), because of such problems as you describe. I only use them to display the data, and if the user wants to add or update a record, he get's a child form for that. For deleting rows, I also don't use the grid's recordset directly, but run the update directly to the database (and then refresh the grid).
In order to be efficient, I avoid having to display more than 100 rows at a time, either by limiting the output somehow, using filters etc...

CHeers
0
 
LVL 8

Assisted Solution

by:MYLim
MYLim earned 133 total points
ID: 9605122
I never try "True DBGrid 7" before,but as i know datagrid is hard to control user data entry.
too many problem when using Grid and better switch to ADO coding when your program
have more than one user.
0
 
LVL 4

Assisted Solution

by:JohnChapin
JohnChapin earned 133 total points
ID: 9606438
The whole point of a connected Datagrid with a dynamic recordset is to allow updates by other users to be shown in the display.
If you want to exclude those changes, then use a recordset with adOpenKeyset or adOpenStatic recordset types.
 adOpenKeyset is a server side set of bookmarks into the database cursor.
 adOpenStatic can be a client side snapshot of the database cursor.
Need More. Let me know.
John
0
 
LVL 1

Expert Comment

by:ayufans
ID: 10390599
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points split between angelIII, MYLim and JohnChapin

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

ayufans
Cleanup Volunteer
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now